Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

vg04112001
Copy link

correction in message inside validator and response message inside controller

Copy link
Contributor

@TejasSurse TejasSurse left a 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"}`
Copy link
Contributor

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 };
Copy link
Collaborator

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.

@wajeshubham
Copy link
Collaborator

Kindly go through requested changes. Also, resolve conflicts. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants