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

API bugfixes, successful challenge creation returns challenge id #22

Merged
merged 2 commits into from
Nov 19, 2020

Conversation

austinmp
Copy link
Collaborator

No description provided.

@@ -157,7 +159,7 @@ exports.challengeCreatePost = async function(req, res, next){
res.status(500).json({ message: "Challenges service encounted an error while saving challenge to database"});
return;
} else {
res.status(201).json({ message: `Challenge created successfully!`});
res.status(201).json({ message: `Challenge created successfully! Challenge Id: ${newChallenge.id}`});
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you include this in a separate field so it's machine parseable?

@Derpthemeus Derpthemeus merged commit e4f43b7 into jitli98:master Nov 19, 2020
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.

2 participants