mirror of
https://github.com/marcogll/AnchorOS.git
synced 2026-03-15 15:24:29 +00:00
TASK 3: Implement weekly invitations reset - COMPLETED - Create Edge Function: app/api/cron/reset-invitations/route.ts - Resets weekly_invitations_used to 0 for all Gold tier customers - Runs automatically every Monday 00:00 UTC - Logs action to audit_logs table - Authentication required (CRON_SECRET) Configuration Required: - Add CRON_SECRET to environment variables (.env.local) - Configure Vercel Cron Job or similar for automatic execution: ```bash curl -X GET "https://aperture.anchor23.mx/api/cron/reset-invitations" \ -H "Authorization: Bearer YOUR_CRON_SECRET" ``` Impact: - Gold tier memberships now work correctly - Weekly invitation quotas are automatically reset - All actions are audited in audit_logs Files Created: - app/api/cron/reset-invitations/route.ts Files Modified: - TASKS.md (marked task 3 as completed) - package-lock.json (updated dependency) Next: Priority HIGH tasks (documentation & design)