Skip to content

Commit

Permalink
fix update todo
Browse files Browse the repository at this point in the history
  • Loading branch information
NguyenPhongVN committed Aug 4, 2023
1 parent c279d53 commit 50282f5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/App/Controllers/TodoController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ struct TodoController: RouteCollection {
}
todo.isCompleted = update.isCompleted
todo.title = update.title
try await todo.save(on: req.db)
return todo
}
/// delete the todo
Expand Down

0 comments on commit 50282f5

Please sign in to comment.