Prettier format pending files
This commit is contained in:
parent
d61fa45c92
commit
38a8726676
4 changed files with 6 additions and 17 deletions
|
|
@ -43,9 +43,6 @@ export async function notifyOnboardingComplete(userId: string): Promise<void> {
|
|||
|
||||
// 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" });
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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" });
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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" });
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue