summaryrefslogtreecommitdiff
path: root/apps/web/app/api/account/data/route.ts
diff options
context:
space:
mode:
Diffstat (limited to 'apps/web/app/api/account/data/route.ts')
-rw-r--r--apps/web/app/api/account/data/route.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/web/app/api/account/data/route.ts b/apps/web/app/api/account/data/route.ts
index 20a7b8c..e2566ba 100644
--- a/apps/web/app/api/account/data/route.ts
+++ b/apps/web/app/api/account/data/route.ts
@@ -30,7 +30,7 @@ export async function GET() {
] = await Promise.all([
supabaseClient
.from("user_profiles")
- .select("id, display_name, tier, created_at")
+ .select("id, tier, created_at")
.eq("id", user.id)
.single(),
supabaseClient
@@ -76,6 +76,7 @@ export async function GET() {
exportedAt: new Date().toISOString(),
account: {
emailAddress: user.email,
+ displayName: user.user_metadata?.display_name ?? null,
...profileResult.data,
},
subscriptions: subscriptionsResult.data ?? [],