Skip to content

Commit

Permalink
main test commit using git aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
Lulca committed Oct 22, 2023
1 parent 8d05be4 commit 9c92108
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/controllers/TodoController/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ const remove = async (req: Request, res: Response) => {
}

todos.splice(index, 1)
res.send({ message: 'Todo deleted' })
res.send({ message: 'Todo deleted!' })
}

export default { get, post, update, remove }
2 changes: 2 additions & 0 deletions api/src/schemas/todoSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ export const todoSchema = z.object({
}),
})



export type TodoSchemaType = z.infer<typeof todoSchema>

0 comments on commit 9c92108

Please sign in to comment.