mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
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:
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;
|
||||
$$
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user