Merge pull request #316 from LoneRifle/patch-2
deleteSubmissions - remove spurious condition
This commit is contained in:
commit
995e6aa41c
1 changed files with 1 additions and 1 deletions
|
@ -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({
|
||||
|
|
Loading…
Reference in a new issue