fix: user update error

This commit is contained in:
CaIon
2024-04-04 11:10:41 +08:00
parent a33f685f3c
commit 2ea6009954
2 changed files with 21 additions and 1 deletions

View File

@@ -724,7 +724,7 @@ func ManageUser(c *gin.Context) {
user.Role = common.RoleCommonUser
}
if err := user.Update(false); err != nil {
if err := user.UpdateAll(false); err != nil {
c.JSON(http.StatusOK, gin.H{
"success": false,
"message": err.Error(),