snapshot of https://github.com/marmelab/atomic-crm.git (main, 2026-09-18; blobs > 131072B omitted)
Some checks failed
✅ Check / 🔬 ESLint (push) Failing after 21s
✅ Check / 🏷️ Typecheck (push) Failing after 11s
✅ Check / 🔎 Test (push) Failing after 11s
✅ Check / e2e-test (push) Failing after 11s
✅ Check / 🔨 Build (push) Failing after 11s
🚀 Deploy / 🚀 Deploy (doc) (push) Failing after 12s
🚀 Deploy / 🚀 Deploy (demo) (push) Failing after 12s
🚀 Deploy / 🚀 Deploy (supabase) (push) Failing after 18s
Some checks failed
✅ Check / 🔬 ESLint (push) Failing after 21s
✅ Check / 🏷️ Typecheck (push) Failing after 11s
✅ Check / 🔎 Test (push) Failing after 11s
✅ Check / e2e-test (push) Failing after 11s
✅ Check / 🔨 Build (push) Failing after 11s
🚀 Deploy / 🚀 Deploy (doc) (push) Failing after 12s
🚀 Deploy / 🚀 Deploy (demo) (push) Failing after 12s
🚀 Deploy / 🚀 Deploy (supabase) (push) Failing after 18s
This commit is contained in:
12
supabase/functions/_shared/utils.ts
Normal file
12
supabase/functions/_shared/utils.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { corsHeaders } from "./cors.ts";
|
||||
|
||||
export function createErrorResponse(
|
||||
status: number,
|
||||
message: string,
|
||||
custom: Record<string, unknown> = {},
|
||||
) {
|
||||
return new Response(JSON.stringify({ status, message, ...custom }), {
|
||||
headers: { "Content-Type": "application/json", ...corsHeaders },
|
||||
status,
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user