Merge pull request #316 from LoneRifle/patch-2

deleteSubmissions - remove spurious condition
This commit is contained in:
Arielle Baldwynn 2018-10-23 22:42:44 -07:00 committed by GitHub
commit 995e6aa41c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,7 +19,7 @@ exports.deleteSubmissions = function(req, res) {
var submission_id_list = req.body.deleted_submissions,
form = req.form;
FormSubmission.remove({ form: req.form, admin: req.user, _id: {$in: submission_id_list} }, function(err){
FormSubmission.remove({ form: req.form, _id: {$in: submission_id_list} }, function(err){
if(err){
res.status(400).send({