From 38a872667670974c64388ef99fd6515963d3761c Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Sun, 16 Nov 2025 06:57:56 +0000 Subject: [PATCH] Prettier format pending files --- api/_notifications.ts | 5 +---- api/_supabase.ts | 5 +---- api/nexus/payments/create-intent.ts | 8 +++----- api/opportunities.ts | 5 +---- 4 files changed, 6 insertions(+), 17 deletions(-) diff --git a/api/_notifications.ts b/api/_notifications.ts index d4fcca01..8fd00a9f 100644 --- a/api/_notifications.ts +++ b/api/_notifications.ts @@ -43,9 +43,6 @@ export async function notifyOnboardingComplete(userId: string): Promise { // Dummy default export for Vercel (this file is a utility, not a handler) import type { VercelRequest, VercelResponse } from "@vercel/node"; -export default async function handler( - req: VercelRequest, - res: VercelResponse, -) { +export default async function handler(req: VercelRequest, res: VercelResponse) { return res.status(501).json({ error: "Not a handler" }); } diff --git a/api/_supabase.ts b/api/_supabase.ts index 2efcd7cf..a50d0dac 100644 --- a/api/_supabase.ts +++ b/api/_supabase.ts @@ -34,9 +34,6 @@ export function getAdminClient() { export const supabase = getAdminClient(); // Dummy default export for Vercel (this file is a utility, not a handler) -export default async function handler( - req: VercelRequest, - res: VercelResponse, -) { +export default async function handler(req: VercelRequest, res: VercelResponse) { return res.status(501).json({ error: "Not a handler" }); } diff --git a/api/nexus/payments/create-intent.ts b/api/nexus/payments/create-intent.ts index d8fd47ed..a7385274 100644 --- a/api/nexus/payments/create-intent.ts +++ b/api/nexus/payments/create-intent.ts @@ -47,11 +47,9 @@ export default async function handler(req: VercelRequest, res: VercelResponse) { .single(); if (oppError || !opportunity || opportunity.posted_by !== user.id) { - return res - .status(403) - .json({ - error: "Not authorized to post contracts for this opportunity", - }); + return res.status(403).json({ + error: "Not authorized to post contracts for this opportunity", + }); } // Verify the creator has applied diff --git a/api/opportunities.ts b/api/opportunities.ts index 992ebc7d..a36a7d7c 100644 --- a/api/opportunities.ts +++ b/api/opportunities.ts @@ -315,9 +315,6 @@ export async function closeOpportunity(opportunityId: string, userId: string) { } // Dummy default export for Vercel (this file is a utility, not a handler) -export default async function handler( - req: VercelRequest, - res: VercelResponse, -) { +export default async function handler(req: VercelRequest, res: VercelResponse) { return res.status(501).json({ error: "Not a handler" }); }