fix: GetMaxUserId use Unscope, close #987
This commit is contained in:
parent
f77a153e6c
commit
fea6f17e80
@ -108,7 +108,7 @@ func CheckUserExistOrDeleted(username string, email string) (bool, error) {
|
||||
|
||||
func GetMaxUserId() int {
|
||||
var user User
|
||||
DB.Last(&user)
|
||||
DB.Unscoped().Last(&user)
|
||||
return user.Id
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user