-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix/Todo-list #189
base: main
Are you sure you want to change the base?
Fix/Todo-list #189
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Improvements
The original code has an issue with string concatenation logic. The condition should be evaluated correctly within the string interpolation.
Improvement: The use of string interpolation directly inside the template literal ensures clarity and correctness.
@@ -100,7 +100,7 @@ const toggleTodoDoneStatus = asyncHandler(async (req, res) => { | |||
new ApiResponse( | |||
200, | |||
todo, | |||
"Todo marked " + todo.isComplete ? "done" : "undone" | |||
"Todo marked " + `${todo.isComplete ? "done" : "undone"}` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The original code has an issue with string concatenation logic. The condition should be evaluated correctly within the string interpolation.
Improvement: The use of string interpolation directly inside the template literal ensures clarity and correctness.
updateTodoValidator, | ||
getAllTodosQueryValidators, | ||
}; | ||
export { createTodoValidator, updateTodoValidator, getAllTodosQueryValidators }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's keep the formatting as is for unchanged lines.
Kindly go through requested changes. Also, resolve conflicts. Thank you! |
correction in message inside validator and response message inside controller