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
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -361,7 +361,12 @@ func UpdateUser(user *User) (updatedUser *User, err error) {
// Update it // Update it
_, err = x. _, err = x.
ID(user.ID). ID(user.ID).
Cols("username", "email", "avatar_provider", "is_active"). Cols(
"username",
"email",
"avatar_provider",
"avatar_file_id",
"is_active").
Update(user) Update(user)
if err != nil { if err != nil {
return &User{}, err return &User{}, err