chore: improve edge function example in pg_cron (#29067)

* chore: improve edge function example in pg_cron

* Update pg_cron.mdx
This commit is contained in:
Rodrigo Mansueli authored and GitHub committed 2024-09-03 18:41:42 +00:00
1 parent dd252385c7
commit 73aae6172c
1 file changed
+3 -2
@@ -129,8 +129,9 @@ select
select
net.http_post(
url:='https://project-ref.supabase.co/functions/v1/function-name',
headers:='{"Content-Type": "application/json", "Authorization": "Bearer YOUR_ANON_KEY"}'::jsonb,
body:=concat('{"time": "', now(), '"}')::jsonb
headers:=jsonb_build_object('Content-Type','application/json', 'Authorization', 'Bearer ' || 'YOUR_ANON_KEY'),
body:=jsonb_build_object('time', now() ),
timeout_milliseconds:=5000
) as request_id;
$$
);