Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: refresh current user (#5072)

boojackee733db77333
diff --git a/frontend/src/store/modules/auth.ts b/frontend/src/store/modules/auth.ts
index cc0f67dd44..c6c82226eb 100644
--- a/frontend/src/store/modules/auth.ts
+++ b/frontend/src/store/modules/auth.ts
@@ -87,7 +87,7 @@ export const useAuthStore = defineStore("auth_v1", {
},
async refreshUserIfNeeded(name: string) {
if (name === this.currentUser.name) {
- const refreshedUser = await useUserStore().getOrFetchUserByName(name);
+ const refreshedUser = await useUserStore().fetchUser(name);
if (!isEqual(refreshedUser, this.currentUser)) {
this.currentUser = refreshedUser;
}