- Add proper CORS headers
- Use standard import instead of dynamic import
- Match the style of other edge functions in the project
- Function can be called once curl/deno/wget is available in scheduled task container
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Created a lightweight wrapper edge function that calls cancel-expired-consulting-orders.
This solves the Coolify scheduled_tasks command column 255 character limit.
Coolify command (184 chars):
deno run --allow-net --allow-env -e "fetch('http://supabase-edge-functions:8000/functions/v1/trigger-calendar-cleanup',{method:'POST'}).then(r=>r.json()).then(j=>console.log(JSON.stringify(j)))"
This replaces the need for long curl commands or external scripts.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>