Explorar o código

Merge pull request #3084 from wackazong/master-patch-1

Create card does not allow an empty member list
Lauri Ojansivu %!s(int64=5) %!d(string=hai) anos
pai
achega
bbb65ae4e2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      models/cards.js

+ 1 - 1
models/cards.js

@@ -2220,7 +2220,7 @@ if (Meteor.isServer) {
     const check = Users.findOne({
       _id: req.body.authorId,
     });
-    const members = req.body.members || [req.body.authorId];
+    const members = req.body.members;
     const assignees = req.body.assignees;
     if (typeof check !== 'undefined') {
       const id = Cards.direct.insert({