Set avatar provider to upload when uploading an avatar
This commit is contained in:
parent
69d935f7f0
commit
27ca9a9169
|
@ -117,6 +117,7 @@ func UploadAvatar(c echo.Context) (err error) {
|
|||
}
|
||||
|
||||
u.AvatarFileID = f.ID
|
||||
u.AvatarProvider = "upload"
|
||||
|
||||
if _, err := user.UpdateUser(u); err != nil {
|
||||
return handler.HandleHTTPError(err, c)
|
||||
|
|
Loading…
Reference in New Issue