aboutsummaryrefslogtreecommitdiff
path: root/internal/route/org/setting.go
diff options
context:
space:
mode:
authorJoe Chen <jc@unknwon.io>2022-10-23 20:54:16 +0800
committerGitHub <noreply@github.com>2022-10-23 20:54:16 +0800
commitd0a4a3401c1c62def511df42769b13cdfba10a6a (patch)
tree57e686c1561b77f36f34cf18904cf4bfc14e7dc4 /internal/route/org/setting.go
parentc58c89362161718e1079b9d43c0ce984bb1506cc (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.go2
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())
}