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

String marks #40

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

String marks #40

wants to merge 5 commits into from

Conversation

P3rcy-8685
Copy link

No description provided.

@@ -117,6 +117,10 @@ const controller = {
const { questionID } = req.params;

const questionData = req.body;
// eslint-disable-next-line no-restricted-globals
if (isNaN(questionData.maxMarks)) {
return notFoundResponse(res, "Marks can't be string");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why notFoundResponse? Shouldn't you just send a failureResponseWithMessage?

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