mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 09:55:06 +03:00
fix: fixing todo app update statement to new supabase interface
This commit is contained in:
1 parent
f2e8a09c88
commit
72186715c8
1 file changed
+1
-1
+1
-1
@@ -73,7 +73,7 @@ export const addTask = async (task_text, list_id) => {
|
||||
|
||||
export const updateTask = async (task_id, values) => {
|
||||
try {
|
||||
let { data, error } = await supabase.from('tasks').eq('id', task_id).update(values)
|
||||
let { data, error } = await supabase.from('tasks').update(values).eq('id', task_id)
|
||||
if (error) {
|
||||
throw new Error(error)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user