fix: user update error
This commit is contained in:
1 parent
ca170cf758
commit
40a6db6797
2 files changed
+21
-1
No files matched your search
+1
-1
@@ -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(),
|
||||
|
||||
Reference in new issue
Block a user