Skip to content

Commit d73869a

Browse files
committed
broaden try stanza to include getAccountId
1 parent 856b6fc commit d73869a

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

  • apps/website/app/api/internal/space/[id]/content

apps/website/app/api/internal/space/[id]/content/route.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ export const POST = async (
2929

3030
const supabase = await createClient();
3131

32-
const userId = await getAccountId(supabase);
33-
if (userId === undefined)
34-
return createApiResponse(
35-
request,
36-
asPostgrestFailure("Please login", "invalid", 401),
37-
);
3832
try {
33+
const userId = await getAccountId(supabase);
34+
if (userId === undefined)
35+
return createApiResponse(
36+
request,
37+
asPostgrestFailure("Please login", "invalid", 401),
38+
);
3939
const body = (await request.json()) as StandaloneCrossAppContent[];
4040
// TODO: Zed validator
4141
const content = body

0 commit comments

Comments
 (0)