Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix: change to return jsonb (#29887)

Joel Leeb6f1e1bd780d
diff --git a/apps/docs/content/guides/auth/auth-hooks/send-email-hook.mdx b/apps/docs/content/guides/auth/auth-hooks/send-email-hook.mdx
index d8945b23bb2..6a6973e0d77 100644
--- a/apps/docs/content/guides/auth/auth-hooks/send-email-hook.mdx
+++ b/apps/docs/content/guides/auth/auth-hooks/send-email-hook.mdx
@@ -351,7 +351,7 @@ create table job_queue (
Create the hook
```sql
-create or replace function send_email(event jsonb) returns void as $$
+create or replace function send_email(event jsonb) returns jsonb as $$
declare
job_data jsonb;
scheduled_time timestamp;
@@ -373,6 +373,8 @@ begin
insert into job_queue (job_data, priority, scheduled_at, max_retries)
values (job_data, priority, scheduled_time, 2);
+
+ return '{}'::jsonb;
end;
$$ language plpgsql;