From dafcb1c627b8db9ece8c2d0d60a45eab845f3959 Mon Sep 17 00:00:00 2001 From: Roberto Milla Martinez Date: Thu, 21 Nov 2024 15:41:47 +0100 Subject: [PATCH] fix: every day at 4.00 --- supabase/migrations/20241121143450_delete_expired_requests.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/supabase/migrations/20241121143450_delete_expired_requests.sql b/supabase/migrations/20241121143450_delete_expired_requests.sql index f81deb7..126006d 100644 --- a/supabase/migrations/20241121143450_delete_expired_requests.sql +++ b/supabase/migrations/20241121143450_delete_expired_requests.sql @@ -6,7 +6,7 @@ grant all privileges on all tables in schema cron to postgres; select cron.schedule ( 'delete_expired_records', -- name of the cron job - '*/5 * * * *', -- Every day at 4:00am (GMT) + '0 4 * * *', -- Every day at 4:00am (GMT) $$ delete from public.help_requests where created_at < now() - interval '7 days'; $$ );