Skip to content

Commit e54fdc9

Browse files
committed
fix: function
1 parent 3aeb475 commit e54fdc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

supabase/schema.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ create or replace function public.handle_activate()
3333
begin
3434
update public.event_users
3535
set activated_at = now(), role = new.role
36-
where receipt_id = new.receipt_id;
36+
where receipt_id = new.receipt_id and activated_at is null;
3737
return new;
3838
end;
3939
$$ language plpgsql security definer;

0 commit comments

Comments
 (0)