File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ struct AddTodoListView: View {
23
23
func saveButtonTapped( ) async {
24
24
do {
25
25
let createdTodo : Todo = try await supabase. database. from ( " todos " )
26
- . insert ( values : request, returning: . representation)
26
+ . insert ( request, returning: . representation)
27
27
. single ( )
28
28
. execute ( )
29
29
. value
Original file line number Diff line number Diff line change @@ -105,8 +105,8 @@ struct TodoListView: View {
105
105
ownerID: auth. currentUserID
106
106
)
107
107
updatedTodo = try await supabase. database. from ( " todos " )
108
- . update ( values : updateRequest, returning: . representation)
109
- . eq ( column : " id " , value: updatedTodo. id)
108
+ . update ( updateRequest, returning: . representation)
109
+ . eq ( " id " , value: updatedTodo. id)
110
110
. single ( )
111
111
. execute ( )
112
112
. value
@@ -130,7 +130,7 @@ struct TodoListView: View {
130
130
131
131
try await supabase. database. from ( " todos " )
132
132
. delete ( )
133
- . in ( column : " id " , value: todosToDelete. map ( \. id) )
133
+ . in ( " id " , value: todosToDelete. map ( \. id) )
134
134
. execute ( )
135
135
} catch {
136
136
self . error = error
You can’t perform that action at this time.
0 commit comments