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)
|
// Dummy default export for Vercel (this file is a utility, not a handler)
|
||||||
import type { VercelRequest, VercelResponse } from "@vercel/node";
|
import type { VercelRequest, VercelResponse } from "@vercel/node";
|
||||||
export default async function handler(
|
export default async function handler(req: VercelRequest, res: VercelResponse) {
|
||||||
req: VercelRequest,
|
|
||||||
res: VercelResponse,
|
|
||||||
) {
|
|
||||||
return res.status(501).json({ error: "Not a handler" });
|
return res.status(501).json({ error: "Not a handler" });
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -34,9 +34,6 @@ export function getAdminClient() {
|
||||||
export const supabase = getAdminClient();
|
export const supabase = getAdminClient();
|
||||||
|
|
||||||
// Dummy default export for Vercel (this file is a utility, not a handler)
|
// Dummy default export for Vercel (this file is a utility, not a handler)
|
||||||
export default async function handler(
|
export default async function handler(req: VercelRequest, res: VercelResponse) {
|
||||||
req: VercelRequest,
|
|
||||||
res: VercelResponse,
|
|
||||||
) {
|
|
||||||
return res.status(501).json({ error: "Not a handler" });
|
return res.status(501).json({ error: "Not a handler" });
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -47,11 +47,9 @@ export default async function handler(req: VercelRequest, res: VercelResponse) {
|
||||||
.single();
|
.single();
|
||||||
|
|
||||||
if (oppError || !opportunity || opportunity.posted_by !== user.id) {
|
if (oppError || !opportunity || opportunity.posted_by !== user.id) {
|
||||||
return res
|
return res.status(403).json({
|
||||||
.status(403)
|
error: "Not authorized to post contracts for this opportunity",
|
||||||
.json({
|
});
|
||||||
error: "Not authorized to post contracts for this opportunity",
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Verify the creator has applied
|
// 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)
|
// Dummy default export for Vercel (this file is a utility, not a handler)
|
||||||
export default async function handler(
|
export default async function handler(req: VercelRequest, res: VercelResponse) {
|
||||||
req: VercelRequest,
|
|
||||||
res: VercelResponse,
|
|
||||||
) {
|
|
||||||
return res.status(501).json({ error: "Not a handler" });
|
return res.status(501).json({ error: "Not a handler" });
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue