Fix upload avatar not working

Signed-off-by: kolaente <k@knt.li>
This commit is contained in:
kolaente 2020-09-27 12:50:52 +02:00
parent f8c135f22e
commit 1776eb56fe
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 6 additions and 1 deletions

View File

@ -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