Skip to content

Commit

Permalink
chore: fix example project
Browse files Browse the repository at this point in the history
  • Loading branch information
grdsdev committed Nov 8, 2023
1 parent 8463fad commit 70dc479
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Examples/Examples/AddTodoListView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ struct AddTodoListView: View {
func saveButtonTapped() async {
do {
let createdTodo: Todo = try await supabase.database.from("todos")
.insert(values: request, returning: .representation)
.insert(request, returning: .representation)
.single()
.execute()
.value
Expand Down
6 changes: 3 additions & 3 deletions Examples/Examples/TodoListView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ struct TodoListView: View {
ownerID: auth.currentUserID
)
updatedTodo = try await supabase.database.from("todos")
.update(values: updateRequest, returning: .representation)
.eq(column: "id", value: updatedTodo.id)
.update(updateRequest, returning: .representation)
.eq("id", value: updatedTodo.id)
.single()
.execute()
.value
Expand All @@ -130,7 +130,7 @@ struct TodoListView: View {

try await supabase.database.from("todos")
.delete()
.in(column: "id", value: todosToDelete.map(\.id))
.in("id", value: todosToDelete.map(\.id))
.execute()
} catch {
self.error = error
Expand Down

0 comments on commit 70dc479

Please sign in to comment.