Prefix
12/26/2021, 11:58 PMGary, el Pingüino Artefacto
12/27/2021, 5:16 AMTremalJack
12/27/2021, 9:24 AMis_member_of_list(auth.uid(), list_id)
ktosiek
12/27/2021, 9:33 AMTremalJack
12/27/2021, 9:35 AMTremalJack
12/27/2021, 9:36 AMTremalJack
12/27/2021, 9:59 AMTremalJack
12/27/2021, 2:48 PMTremalJack
12/27/2021, 2:57 PMSELECT EXISTS (
SELECT 1
FROM channel_users cu
WHERE cu.channel_id::int8 = _channel_id::int8
AND cu.user_mail::text = _user_email::text
);
and I get immediatly the error max_stack_depth from a simple select query:
const lastChannelMessageRead = await this.supabase.from('channel_users').select('channel_id,last_message_read').eq('user_mail',this.data.user_loged.user.email)
ktosiek
12/27/2021, 2:59 PMTremalJack
12/27/2021, 3:00 PMTremalJack
12/27/2021, 3:02 PMktosiek
12/27/2021, 3:02 PMTremalJack
12/27/2021, 3:02 PMTremalJack
12/27/2021, 3:03 PMTremalJack
12/27/2021, 3:03 PMTremalJack
12/27/2021, 3:08 PMTremalJack
12/27/2021, 3:13 PMTremalJack
12/27/2021, 3:14 PMTremalJack
12/27/2021, 3:39 PMlorencerri
12/27/2021, 8:33 PMpublic.identities
table with staff (boolean)
& uid (auth.user foreign key)
columns. Essentially, I want to check if that identity has the staff boolean value to true before being able to edit this table.
I've tried these two, although they both seem to produce errors near the beginning of the expression:
EDIT: The following seemed to work, although I'm not sure if it's the best way of doing it
sql
exists (
select staff from public.identities
where public.identities.uid = auth.uid()
and public.identities.staff = true
)
bs-clerk
12/27/2021, 9:21 PMchipilov
12/27/2021, 9:22 PMbs-clerk
12/27/2021, 9:23 PMbs-clerk
12/27/2021, 9:24 PMchipilov
12/27/2021, 9:24 PMbs-clerk
12/27/2021, 9:25 PMbs-clerk
12/27/2021, 9:25 PMchasers
12/28/2021, 1:25 AMwhere
portion of a sql statement. Soon it will allow you to pass full sql to query your logs with. Iterating through that whole UI more at the moment.TremalJack
12/28/2021, 9:08 AM