diff options
author | Joe Chen <jc@unknwon.io> | 2022-10-23 20:54:16 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-23 20:54:16 +0800 |
commit | d0a4a3401c1c62def511df42769b13cdfba10a6a (patch) | |
tree | 57e686c1561b77f36f34cf18904cf4bfc14e7dc4 /internal/route/org/setting.go | |
parent | c58c89362161718e1079b9d43c0ce984bb1506cc (diff) |
refactor(db): migrate avatar methods off `user.go` (#7206)
Diffstat (limited to 'internal/route/org/setting.go')
-rw-r--r-- | internal/route/org/setting.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/route/org/setting.go b/internal/route/org/setting.go index e15b9faf..5047a7d5 100644 --- a/internal/route/org/setting.go +++ b/internal/route/org/setting.go @@ -96,7 +96,7 @@ func SettingsAvatar(c *context.Context, f form.Avatar) { } func SettingsDeleteAvatar(c *context.Context) { - if err := c.Org.Organization.DeleteAvatar(); err != nil { + if err := db.Users.DeleteCustomAvatar(c.Req.Context(), c.Org.Organization.ID); err != nil { c.Flash.Error(err.Error()) } |