From 283733d120b47fb88e7770bd9a519b653cc8fd06 Mon Sep 17 00:00:00 2001 From: UUBulb <35923940+uubulb@users.noreply.github.com> Date: Wed, 1 Jan 2025 16:11:10 +0800 Subject: [PATCH] fix: update user cache after profile updates (#936) --- cmd/dashboard/controller/user.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/dashboard/controller/user.go b/cmd/dashboard/controller/user.go index 486597ee23..c2cbea87be 100644 --- a/cmd/dashboard/controller/user.go +++ b/cmd/dashboard/controller/user.go @@ -89,6 +89,7 @@ func updateProfile(c *gin.Context) (any, error) { return nil, newGormError("%v", err) } + singleton.OnUserUpdate(&user) return nil, nil }