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

Create card does not allow an empty member list
This commit is contained in:
Lauri Ojansivu 2020-05-13 03:16:37 +03:00 committed by GitHub
commit bbb65ae4e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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({