We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3aeb475 commit e54fdc9Copy full SHA for e54fdc9
supabase/schema.sql
@@ -33,7 +33,7 @@ create or replace function public.handle_activate()
33
begin
34
update public.event_users
35
set activated_at = now(), role = new.role
36
- where receipt_id = new.receipt_id;
+ where receipt_id = new.receipt_id and activated_at is null;
37
return new;
38
end;
39
$$ language plpgsql security definer;
0 commit comments