diff --git a/api/applications.ts b/api/applications.ts index ce60c3a6..f817e5b3 100644 --- a/api/applications.ts +++ b/api/applications.ts @@ -145,7 +145,10 @@ export async function getApplicationsForOpportunity( export async function submitApplication(req: Request, userId: string) { try { - const body = (await req.json()) as { opportunity_id?: string; cover_letter?: string }; + const body = (await req.json()) as { + opportunity_id?: string; + cover_letter?: string; + }; const { opportunity_id, cover_letter } = body; // Get creator ID for this user diff --git a/api/community/posts.ts b/api/community/posts.ts index 80595d6a..cf89f638 100644 --- a/api/community/posts.ts +++ b/api/community/posts.ts @@ -110,7 +110,7 @@ export default async function handler(req: any, res: any) { return res.status(500).json({ error: error.message }); } - const createdPost = (data?.[0] as any); + const createdPost = data?.[0] as any; // Sync post to Discord feed webhook try { diff --git a/api/devconnect-links.ts b/api/devconnect-links.ts index 482bc1b8..7dae37e3 100644 --- a/api/devconnect-links.ts +++ b/api/devconnect-links.ts @@ -7,7 +7,10 @@ const supabase = createClient(supabaseUrl, supabaseServiceRole); export async function linkDevConnectAccount(req: Request, userId: string) { try { - const body = (await req.json()) as { devconnect_username?: string; devconnect_profile_url?: string }; + const body = (await req.json()) as { + devconnect_username?: string; + devconnect_profile_url?: string; + }; const { devconnect_username, devconnect_profile_url } = body; if (!devconnect_username) { diff --git a/api/discord/activity-auth.ts b/api/discord/activity-auth.ts index c93d1680..8c1ba596 100644 --- a/api/discord/activity-auth.ts +++ b/api/discord/activity-auth.ts @@ -53,7 +53,12 @@ export default async function handler(req: VercelRequest, res: VercelResponse) { throw new Error(`Discord API error: ${discordResponse.statusText}`); } - const discordUser = (await discordResponse.json()) as { id: string; username: string; global_name?: string; avatar?: string }; + const discordUser = (await discordResponse.json()) as { + id: string; + username: string; + global_name?: string; + avatar?: string; + }; const discord_id = discordUser.id; const discord_username = discordUser.username; diff --git a/api/discord/token.ts b/api/discord/token.ts index 8e8a5466..f3a3f95c 100644 --- a/api/discord/token.ts +++ b/api/discord/token.ts @@ -54,7 +54,11 @@ export default async function handler(req: any, res: any) { }); } - const tokenData = (await tokenResponse.json()) as { access_token: string; token_type: string; expires_in: number }; + const tokenData = (await tokenResponse.json()) as { + access_token: string; + token_type: string; + expires_in: number; + }; const accessToken = tokenData.access_token; if (!accessToken) { @@ -74,7 +78,10 @@ export default async function handler(req: any, res: any) { return res.status(401).json({ error: "Invalid token" }); } - const discordUser = (await userResponse.json()) as { id: string; username: string }; + const discordUser = (await userResponse.json()) as { + id: string; + username: string; + }; console.log( "[Discord Token] Token exchange successful for user:", discordUser.id, diff --git a/api/user/link-email.ts b/api/user/link-email.ts index 3020a43d..a20e2409 100644 --- a/api/user/link-email.ts +++ b/api/user/link-email.ts @@ -10,7 +10,10 @@ export default async (req: Request) => { try { const supabase = getAdminClient(); - const { primaryEmail, linkedEmail } = (await req.json()) as { primaryEmail?: string; linkedEmail?: string }; + const { primaryEmail, linkedEmail } = (await req.json()) as { + primaryEmail?: string; + linkedEmail?: string; + }; if (!primaryEmail || !linkedEmail) { return new Response(