larryM
09/18/2021, 1:54 AMScott P
09/18/2021, 2:23 AMlarryM
09/18/2021, 2:34 AMmtallalazam
09/18/2021, 6:37 PMdavitykale
09/18/2021, 10:02 PMstibbs
09/18/2021, 10:10 PM.env.local
or similar) is correct?stibbs
09/18/2021, 10:11 PMtypescript
export interface User {
id: string
app_metadata: {
provider?: string
[key: string]: any
}
user_metadata: {
[key: string]: any
}
aud: string
confirmation_sent_at?: string
recovery_sent_at?: string
action_link?: string
email?: string
phone?: string
created_at: string
confirmed_at?: string
email_confirmed_at?: string
phone_confirmed_at?: string
last_sign_in_at?: string
role?: string
updated_at?: string
}
davitykale
09/18/2021, 10:19 PMmtallalazam
09/19/2021, 1:09 AMshahpriyansh04
09/22/2021, 4:37 AM[{id: '1" , name: "John Doe"}]
So how can i make it like this
[{id: '1" , name: "John Doe"} , {id: "2" , name: "Jane Doe"}]
Can anyone pls help with this ?stibbs
09/22/2021, 7:29 AMts
const arrayName = [{id: '1', name: 'John Doe'}]
arrayName.push(...[{id: '2' , name: 'Jane Doe'}]);
console.log(arrayName)
// [{id: '1', name: 'John Doe'}, {id: '2' , name: 'Jane Doe'}]
stibbs
09/22/2021, 7:41 AMts
await supabase
.from('posts')
.update({ valid_until: `now() + interval '30 day'` })
.eq('id', postId);
valid_until
is of type timestamp with time zone
Edit: It would appear not... What's the best way to achieve this?
json
{
"hint": null,
"message": "invalid input syntax for type timestamp with time zone: \"now() + interval '30 day'\"",
"code": "22007",
"details": null
}
stibbs
09/22/2021, 7:49 AM.update({ valid_until: 'now()'})
works... but the psql datetime operator won't?shahpriyansh04
09/22/2021, 12:10 PMsilentworks
09/22/2021, 4:29 PMMikeJ
09/22/2021, 4:34 PMAngelu
09/23/2021, 2:05 PMclient.from('table_name').on('INSERT', (data) => {
console.log(data)
}).subscribe()
do I need to install the @supabase/realtime-js
? Cause I'm inserting something in my database but nothing on my console.Scott P
09/23/2021, 3:11 PM@supabase/supabase-js
library includes support for all client-facing features of Supabase.
Make sure you've enabled subscriptions for the table you're subscribing to (check the Database > Replication page in the dashboard)Angelu
09/24/2021, 12:25 PMliljamesjohn
09/24/2021, 2:46 PMpatrik
09/24/2021, 2:56 PMliljamesjohn
09/24/2021, 2:58 PMdiscoding
09/24/2021, 3:50 PM#
at the end of my redirectTo
url?silentworks
09/24/2021, 8:51 PMdiscoding
09/25/2021, 7:32 AMdiscoding
09/25/2021, 7:32 AMdiscoding
09/25/2021, 7:33 AMJaeden
09/25/2021, 8:06 AMJaeden
09/25/2021, 2:37 PMAdnane
09/27/2021, 2:15 PM