magicbyt3
03/30/2022, 1:36 PMjs
async function update(newData) {
const objId = newData.id;
const { data, error } = await supabase
.from('addresses')
.update({city: newData.city})
.eq('id', objId);
console.log(data, error)
if (null !== error) {
return false;
}
return true;
}
data is null and error is an empty array. Reponse http is 404 but I have no idea why it happens at all. The record with the id (1) exists in the table and everything is spelled correct.Needle
03/30/2022, 1:36 PM/title
command!
We have solved your problem?
Click the button below to archive it.debabrata
03/30/2022, 1:38 PMNeedle
03/30/2022, 1:38 PMmagicbyt3
03/30/2022, 1:39 PMNeedle
03/30/2022, 1:42 PMdebabrata
03/30/2022, 2:09 PM