From fd7d83ace60258acf7139c4c787aa8af75b7ba8c Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Fri, 20 May 2022 22:08:52 +0800 Subject: Move almost all functions' parameter db.Engine to context.Context (#19748) * Move almost all functions' parameter db.Engine to context.Context * remove some unnecessary wrap functions --- routers/install/install.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'routers/install/install.go') diff --git a/routers/install/install.go b/routers/install/install.go index 41b11aef33..3fc5f0536a 100644 --- a/routers/install/install.go +++ b/routers/install/install.go @@ -521,7 +521,7 @@ func SubmitInstall(ctx *context.Context) { return } log.Info("Admin account already exist") - u, _ = user_model.GetUserByName(u.Name) + u, _ = user_model.GetUserByName(ctx, u.Name) } days := 86400 * setting.LogInRememberDays -- cgit v1.2.3