Created a Deno script that uses the built-in fetch() API to trigger the
cancel-expired-consulting-orders edge function, replacing the need for curl
in Coolify scheduled tasks.
This script:
- Uses Deno.env.get() for environment variables (like Supabase functions)
- Uses Deno's native fetch() API (no external dependencies)
- Runs with --allow-net and --allow-env permissions
- Can be used in Coolify scheduled tasks: deno run scripts/trigger-calendar-cleanup.js
Usage in Coolify scheduled task command:
deno run --allow-net --allow-env /app/scripts/trigger-calendar-cleanup.js
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>