fix: rename to GetPossibleUserByID

This commit is contained in:
Jason Song
2023-01-04 18:10:30 +08:00
parent 0887e98f2a
commit 6148e4c940
6 changed files with 7 additions and 7 deletions

View File

@@ -132,7 +132,7 @@ func (o *OAuth2) Verify(req *http.Request, w http.ResponseWriter, store DataStor
}
log.Trace("OAuth2 Authorization: Found token for user[%d]", id)
user, err := user_model.GetPossbileUserByID(req.Context(), id)
user, err := user_model.GetPossibleUserByID(req.Context(), id)
if err != nil {
if !user_model.IsErrUserNotExist(err) {
log.Error("GetUserByName: %v", err)