Mike92988
08/11/2021, 9:34 PMflorian-lefebvre
08/11/2021, 9:34 PMflorian-lefebvre
08/11/2021, 9:36 PMMike92988
08/11/2021, 9:36 PMflorian-lefebvre
08/11/2021, 9:36 PMflorian-lefebvre
08/11/2021, 9:37 PMMike92988
08/11/2021, 9:53 PMLio
08/11/2021, 11:17 PMLio
08/11/2021, 11:18 PMAndrewMayne
08/12/2021, 1:05 AMknight
08/12/2021, 1:28 AMMike92988
08/12/2021, 2:05 AMdennis
08/12/2021, 6:53 AM--header 'authorization: OAuth oauth_consumer_key="YOUR_CONSUMER_KEY", oauth_nonce="AUTO_GENERATED_NONCE", oauth_signature="AUTO_GENERATED_SIGNATURE", oauth_signature_method="HMAC-SHA1", oauth_timestamp="AUTO_GENERATED_TIMESTAMP", oauth_token="USERS_ACCESS_TOKEN", oauth_version="1.0"'
donpuerto
08/12/2021, 7:15 AMjs
const { data, error } = await supabase
.from('phones')
.delete()
.eq('id', CAST(phone.id as INTEGER))
CAST not working in SupabaseCAMOU
08/12/2021, 8:57 AMEvostance
08/12/2021, 9:15 AMGandalfG
08/12/2021, 9:44 AMknight
08/12/2021, 11:16 AMuser
08/12/2021, 12:18 PMMike92988
08/12/2021, 12:53 PMflorian-lefebvre
08/12/2021, 1:15 PMflorian-lefebvre
08/12/2021, 2:08 PMcopple
08/12/2021, 2:12 PMflorian-lefebvre
08/12/2021, 2:12 PMdonpuerto
08/12/2021, 2:28 PMts
declare interface Phone {
id ?: number | undefined;
user_id ?: string | undefined;
is_active ?: boolean | undefined;
type ?: string | undefined;
phone ?: string | undefined;
description ?: string | undefined;
created_at?: Date | undefined;
updated_at?: Date | undefined;
}
const deletePhoneById = async (phone: Phone) => {
const { data, error } = await supabase
.from('phones')
.delete()
.eq('id', phone.id)
}
jjj.westra
08/12/2021, 2:43 PMjjj.westra
08/12/2021, 2:44 PMjjj.westra
08/12/2021, 2:44 PMjjj.westra
08/12/2021, 2:45 PMScott P
08/12/2021, 2:49 PMphone.id
is truthy. You're asking the db to delete a field based on an int, but possibly passing undefined