e0
08/15/2021, 4:36 PMe0
08/15/2021, 4:47 PMAdamo
08/15/2021, 8:51 PMflorian-lefebvre
08/15/2021, 8:54 PMAdamo
08/15/2021, 9:10 PMAdamo
08/15/2021, 9:10 PMAdamo
08/15/2021, 9:10 PMAdamo
08/15/2021, 9:12 PMNEXT_PUBLIC_
florian-lefebvre
08/15/2021, 9:32 PMDyingAlbatross
08/16/2021, 5:51 PMsupabase.auth.api.signout()
, but it seems like if they make another call with the same token auth.api.getUser(token)
is still giving me the userDyingAlbatross
08/16/2021, 6:31 PMMihai Andrei
08/16/2021, 7:48 PMMihai Andrei
08/16/2021, 7:49 PMDyingAlbatross
08/16/2021, 8:09 PMswiss
08/17/2021, 1:24 AM{
hint: null,
details: null,
code: '42703',
message: 'column "0" of relation "intervals" does not exist'
}
Couldn't find anything on this, and I even temporarily removed my relation keys from the tables to just see if plain inserting something would work but I'm still getting the error. Any ideas why this is happening? If it helps, here's my next.js api route code
// req.body is an object containing the fields I want the row to have
console.log("REQ: ", req.body)
const { data, error } = await supabase
.from("intervals")
.insert([req.body])
if (error) {
console.log(error)
res.status(404)
}
console.log("NICE: ", data)
res.status(200).json(data)
silentworks
08/17/2021, 2:56 PMtricked
08/18/2021, 5:31 PMtricked
08/18/2021, 5:32 PMjs
const img = await supa.storage.from("images").download(`image.png`);
return Buffer.from(await img.data.text(), "binary");
( using fastify if that matters )unix17
08/18/2021, 10:22 PMunix17
08/18/2021, 10:25 PMclaud9
08/19/2021, 7:32 PMswiss
08/19/2021, 10:41 PMswiss
08/19/2021, 10:44 PMactions
. It has columns id: int8
(autogenerated), name: varchar
, status: varchar
. I also have a table called logs
with the columns id: int8
, start: timestamp
, stop: timestamp
, action: foreign key relation(id on actions)
. That all works, but when I try to add another column on actions
called logs
and make that a foreign key it doesn't work. I've tried it as an array as well cause that's what I prefer, but that doesn't work. Essentially, one action can have many logs, but one log can only have one action. What am i doing wrong?jason-lynx
08/20/2021, 3:50 AMjason-lynx
08/20/2021, 3:51 AMjason-lynx
08/20/2021, 3:55 AMswiss
08/20/2021, 1:02 PMsoedirgo
08/20/2021, 5:28 PMlogs
column on the actions
table. You should be able to query logs
through actions
as per https://supabase.io/docs/reference/javascript/select#query-foreign-tables and it should just work.jcald
08/20/2021, 5:42 PMswiss
08/20/2021, 7:51 PM