Fix upload avatar not working
Signed-off-by: kolaente <k@knt.li>
This commit is contained in:
parent
f8c135f22e
commit
1776eb56fe
1 changed files with 6 additions and 1 deletions
|
@ -361,7 +361,12 @@ func UpdateUser(user *User) (updatedUser *User, err error) {
|
|||
// Update it
|
||||
_, err = x.
|
||||
ID(user.ID).
|
||||
Cols("username", "email", "avatar_provider", "is_active").
|
||||
Cols(
|
||||
"username",
|
||||
"email",
|
||||
"avatar_provider",
|
||||
"avatar_file_id",
|
||||
"is_active").
|
||||
Update(user)
|
||||
if err != nil {
|
||||
return &User{}, err
|
||||
|
|
Loading…
Reference in a new issue