Skip to content

Commit 70dc479

Browse files
committed
chore: fix example project
1 parent 8463fad commit 70dc479

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Examples/Examples/AddTodoListView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ struct AddTodoListView: View {
2323
func saveButtonTapped() async {
2424
do {
2525
let createdTodo: Todo = try await supabase.database.from("todos")
26-
.insert(values: request, returning: .representation)
26+
.insert(request, returning: .representation)
2727
.single()
2828
.execute()
2929
.value

Examples/Examples/TodoListView.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ struct TodoListView: View {
105105
ownerID: auth.currentUserID
106106
)
107107
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)
110110
.single()
111111
.execute()
112112
.value
@@ -130,7 +130,7 @@ struct TodoListView: View {
130130

131131
try await supabase.database.from("todos")
132132
.delete()
133-
.in(column: "id", value: todosToDelete.map(\.id))
133+
.in("id", value: todosToDelete.map(\.id))
134134
.execute()
135135
} catch {
136136
self.error = error

0 commit comments

Comments
 (0)