Nin
06/19/2022, 8:05 PMif new.invited_at IS NOT NULL
The if statement itself works fine, however, invited_at is checked and is seen as null even though it's not. Any clue what's happening?Needle
06/19/2022, 8:05 PMNin
06/19/2022, 8:07 PMbegin
if new.invited_at IS NOT NULL then
insert into public.users (user_id, user_email, temp)
values (new.id, new.email, 1); return new;
else
insert into public.users (user_id, user_email)
values (new.id, new.email);
return new;
END if;
end;
Full function for referencesilentworks
06/19/2022, 9:28 PMsilentworks
06/19/2022, 9:29 PM.rpc
method of the supabase library?Nin
06/19/2022, 9:29 PMNin
06/19/2022, 9:29 PMNin
06/19/2022, 9:29 PMsilentworks
06/19/2022, 9:33 PMNin
06/19/2022, 9:36 PMNin
06/19/2022, 9:37 PMsilentworks
06/19/2022, 9:39 PMsilentworks
06/19/2022, 9:40 PMsilentworks
06/19/2022, 9:40 PMNin
06/19/2022, 9:42 PMsilentworks
06/19/2022, 9:42 PMNeedle
06/19/2022, 9:55 PM