mirror of
https://github.com/go-gitea/gitea
synced 2025-07-06 02:27:20 +00:00
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
This commit is contained in:
@ -64,7 +64,7 @@ func AutoSignIn(ctx *context.Context) (bool, error) {
|
||||
}
|
||||
}()
|
||||
|
||||
u, err := user_model.GetUserByName(uname)
|
||||
u, err := user_model.GetUserByName(ctx, uname)
|
||||
if err != nil {
|
||||
if !user_model.IsErrUserNotExist(err) {
|
||||
return false, fmt.Errorf("GetUserByName: %v", err)
|
||||
|
Reference in New Issue
Block a user