make sure surveys are enabled before adding a survey

This commit is contained in:
Jake McDermott 2018-06-22 13:11:42 -04:00
parent 9ae5ffc8ca
commit ef4607b29f
No known key found for this signature in database
GPG Key ID: 3B02CAD476EECB35

View File

@ -58,8 +58,9 @@ module.exports = {
new_question: true
}]
});
const surveyPatch = patch(promptNoPass.url, { survey_enabled: true });
Promise.all([surveyPost, surveyPatch])
surveyPost
.then(() => patch(promptNoPass.url, { survey_enabled: true }))
.then(done);
});
});