Fix edge function import error

Corrected an import error in the `run-cleanup-jobs` edge function. The function was attempting to import from a non-existent `../_shared/cors.ts` file. This has been resolved by defining the `corsHeaders` inline within the function, aligning with the pattern used in other edge functions.
This commit is contained in:
gpt-engineer-app[bot]
2025-11-07 18:06:01 +00:00
parent 93b9553e2c
commit 44f50f1f3c

View File

@@ -11,9 +11,13 @@
*/ */
import { createClient } from 'https://esm.sh/@supabase/supabase-js@2.57.4'; import { createClient } from 'https://esm.sh/@supabase/supabase-js@2.57.4';
import { corsHeaders } from '../_shared/cors.ts';
import { edgeLogger } from '../_shared/logger.ts'; import { edgeLogger } from '../_shared/logger.ts';
const corsHeaders = {
'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Headers': 'authorization, x-client-info, apikey, content-type',
};
interface CleanupResult { interface CleanupResult {
idempotency_keys?: { idempotency_keys?: {
deleted: number; deleted: number;