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

Added a flag "multipleCorrect" #8

Closed
wants to merge 7 commits into from

Conversation

Projects
None yet
2 participants
@architkshk
Copy link

commented Aug 13, 2018

@@ -53,7 +58,7 @@ class QuestionsController extends BaseController {
*/
async submitQuestion (req, res) {
let { markedChoices } = req.body
let { correctAnswers, markedChoices } = req.body

This comment has been minimized.

Copy link
@abhishek97
@@ -18,6 +18,11 @@ module.exports = (sequelize, DataTypes) => {
type: DataTypes.ARRAY(DataTypes.BIGINT),
allowNull: false,
defaultValue: []
},
multipleCorrect: {

This comment has been minimized.

Copy link
@abhishek97

abhishek97 Aug 15, 2018

Member

you must add a migration too

This comment has been minimized.

Copy link
@architkshk

architkshk Aug 15, 2018

Author

@abhishek97 Done! took help from #10

architkshk added some commits Aug 15, 2018

@abhishek97 abhishek97 closed this Aug 18, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.