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

@ -988,8 +988,8 @@ func GetUserByID(ctx context.Context, id int64) (*User, error) {
return u, nil
}
// GetPossbileUserByID returns the user if id > 0 or return system usrs if id < 0
func GetPossbileUserByID(ctx context.Context, id int64) (*User, error) {
// GetPossibleUserByID returns the user if id > 0 or return system usrs if id < 0
func GetPossibleUserByID(ctx context.Context, id int64) (*User, error) {
switch id {
case -1:
return NewGhostUser(), nil