Skip to content

Commit

Permalink
fix: update user config sql
Browse files Browse the repository at this point in the history
  • Loading branch information
JingYiJun committed Oct 31, 2023
1 parent 3995002 commit 0f11596
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apis/user/apis.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func ModifyUser(c *fiber.Ctx) error {
}

var newUser User
err = DB.Where("user_id = ?", userID).Select("config").First(&newUser).Error
err = DB.Select("config").First(&newUser, userID).Error
if err != nil {
return err
}
Expand Down

0 comments on commit 0f11596

Please sign in to comment.