From 3684919238c9fb07b79eb59ff92f3252ca5c5347 Mon Sep 17 00:00:00 2001 From: Josh Payette Date: Mon, 18 May 2026 20:14:54 -0400 Subject: [PATCH] Fixed synchronous promise that were not dependent on each other. --- src/features/auth/dal/user-profile/user-profile.actions.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/features/auth/dal/user-profile/user-profile.actions.ts b/src/features/auth/dal/user-profile/user-profile.actions.ts index b2707bb..0f5ccc4 100644 --- a/src/features/auth/dal/user-profile/user-profile.actions.ts +++ b/src/features/auth/dal/user-profile/user-profile.actions.ts @@ -97,8 +97,10 @@ const userProfileActions = { }, local: async (input, ctx) => { const userId = input?.userId ?? resolveLocalUserId(ctx); - const profile = await getLocalUserProfile(userId); - const overrides = await getLocalAvatarOverrides(userId); + const [profile, overrides] = await Promise.all([ + getLocalUserProfile(userId), + getLocalAvatarOverrides(userId), + ]); return { displayName: profile?.displayName ?? "Traveler", bio: profile?.bio ?? "No bio provided.", -- 2.51.2