fix: fixing todo app update statement to new supabase interface

This commit is contained in:
Ant Wilson authored and GitHub committed 2020-11-23 12:39:24 +08:00
1 parent f2e8a09c88
commit 72186715c8
1 file changed
+1 -1
+1 -1
View File
@@ -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)
}