Marky
10/26/2021, 3:34 PMOpossible
10/26/2021, 3:36 PMlet exercises = ([
{
id: uid++,
name: 'skin the cat 5x2',
sets: [false, false, false, false, false],
},
...
What is the best way to store that in postGres? I tried the 'text' type with "Define as Array" checked, but it's coming back from the database with extra double quotes and backslashes...Marky
10/26/2021, 3:37 PMOpossible
10/26/2021, 3:55 PMwiesson
10/26/2021, 6:26 PMbraedenf
10/26/2021, 7:11 PMSeñor Bruno
10/26/2021, 7:16 PMbraedenf
10/26/2021, 8:01 PMhtml
if (browser) {
supabaseClient.auth.onAuthStateChange((event, _session) => {
if (_session) {
fetch('/api/googleauth', {
method: 'post',
body: JSON.stringify({ event, _session })
}).then((res) => {
if (res.ok) window.location.href = '/';
else alert(res.text());
});
}
});
}
VuNguyen
10/27/2021, 3:20 AMhaydn
10/27/2021, 4:14 AMalter table "employees" rename to "people"
). I've tried doing it a few different ways. It's fine if I use the Supabase dashboard (using the UI or writing my own SQL), but if I connect directly via DBeaver the connection gets terminated when trying the run that statement. Is this expected behaviour or is something going wrong here?VuNguyen
10/27/2021, 4:20 AMfergus
10/27/2021, 8:39 AMsupabase.auth.api.getUserByCookie(req)
to get the user serverside?fergus
10/27/2021, 10:13 AMerik_flywheel
10/27/2021, 10:49 AMtamagoez
10/27/2021, 12:48 PMHarryET
10/27/2021, 1:24 PMHarryET
10/27/2021, 1:24 PMgaryaustin
10/27/2021, 2:10 PMerinstearns
10/27/2021, 4:23 PMspiderz
10/27/2021, 4:55 PMsilentworks
10/27/2021, 5:31 PMaixoniarutad
10/27/2021, 6:07 PMkeknal
10/27/2021, 6:34 PMbraedenf
10/27/2021, 6:37 PMAirDiamond
10/27/2021, 10:12 PMgaryaustin
10/27/2021, 10:19 PMAirDiamond
10/27/2021, 10:22 PMgaryaustin
10/28/2021, 12:45 AMKevin Tale
10/28/2021, 7:57 AMHarryET
10/28/2021, 8:36 AMredirectTo: