fix logging
All checks were successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/dryrun Pipeline was successful
ci/woodpecker/push/publish-tag Pipeline was successful
ci/woodpecker/push/publish-latest Pipeline was successful

This commit is contained in:
2024-06-26 22:57:53 -04:00
parent c98fc938c9
commit 8b1468fc1f
2 changed files with 8 additions and 9 deletions

View File

@@ -54,14 +54,14 @@ func (ts *TodoService) UpdateTodo(id uuid.UUID, name string, done bool) (models.
return ts.db.Get(id)
}
func (ts *TodoService) GetTodos() (todos []models.Todo, err error) {
func (ts *TodoService) GetTodos() ([]models.Todo, error) {
return ts.db.List()
}
func (ts *TodoService) GetTodoById(id uuid.UUID) (todo models.Todo, err error) {
func (ts *TodoService) GetTodoById(id uuid.UUID) (models.Todo, error) {
return ts.db.Get(id)
}
func (ts *TodoService) DeleteTodoById(id uuid.UUID) (err error) {
func (ts *TodoService) DeleteTodoById(id uuid.UUID) error {
return ts.db.Delete(id)
}