Fix user's UpdatedTime in other APIs

This commit is contained in:
Yang Luo
2023-11-08 20:22:28 +08:00
parent a9e72ac3cb
commit 988b14c6b5
2 changed files with 7 additions and 0 deletions

View File

@ -664,6 +664,8 @@ func UpdateUserForAllFields(id string, user *User) (bool, error) {
}
}
user.UpdatedTime = util.GetCurrentTime()
affected, err := ormer.Engine.ID(core.PK{owner, name}).AllCols().Update(user)
if err != nil {
return false, err