fix: user update error

This commit is contained in:
CaIon committed 2024-04-04 11:10:41 +08:00
1 parent ca170cf758
commit 40a6db6797
2 files changed
+21 -1

No files matched your search

+1 -1
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(),