Skip to content

Commit

Permalink
include awaits
Browse files Browse the repository at this point in the history
  • Loading branch information
motatoes committed Oct 21, 2024
1 parent 2144dd4 commit 5b4490f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ export async function GET(request: Request) {

// TODO: find out how user profile and private info are created automatically
const userId = data.user?.id;
createDefaultUserProfile(userId!);
createDefaultUserPrivateInfo(userId!);
await createDefaultUserProfile(userId!);
await createDefaultUserPrivateInfo(userId!);
const defaultOrgTitle = process.env.DEFAULT_ORG_TITLE || 'digger';
const defaultOrgSlug = process.env.DEFAULT_ORG_SLUG || 'digger';

Expand All @@ -53,7 +53,7 @@ export async function GET(request: Request) {
}

// set meta_data to state that the user has created organisation already so it skips in onboarding screen
supabaseAdminClient.auth.admin.updateUserById(userId!, {
await supabaseAdminClient.auth.admin.updateUserById(userId!, {
user_metadata: { onboardingHasCreatedOrganization: true },
});
} catch (error) {
Expand Down

0 comments on commit 5b4490f

Please sign in to comment.