diff options
author | Lauri Ojansivu <x@xet7.org> | 2018-05-03 09:27:29 +0300 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2018-05-03 09:27:29 +0300 |
commit | daeb06f7b793f2e9f7590296e45b3d129ccb0a3a (patch) | |
tree | 6b821842e89c5a6caad466b8210c52eda6d36fb1 /models | |
parent | 01804daf24267b84c46e9d1a75bf2f5b758ae7bb (diff) | |
parent | dcd5af0a76b58611d4a04d1fab69194b0368c9cb (diff) | |
download | wekan-daeb06f7b793f2e9f7590296e45b3d129ccb0a3a.tar.gz wekan-daeb06f7b793f2e9f7590296e45b3d129ccb0a3a.tar.bz2 wekan-daeb06f7b793f2e9f7590296e45b3d129ccb0a3a.zip |
Merge branch 'devel'
Diffstat (limited to 'models')
-rw-r--r-- | models/cards.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/models/cards.js b/models/cards.js index 4a662953..721e1ee7 100644 --- a/models/cards.js +++ b/models/cards.js @@ -489,6 +489,7 @@ if (Meteor.isServer) { const paramBoardId = req.params.boardId; const paramListId = req.params.listId; const check = Users.findOne({_id: req.body.authorId}); + const members = req.body.members || [req.body.authorId]; if (typeof check !== 'undefined') { const id = Cards.direct.insert({ title: req.body.title, @@ -498,7 +499,7 @@ if (Meteor.isServer) { userId: req.body.authorId, swimlaneId: req.body.swimlaneId, sort: 0, - members: [req.body.authorId], + members: members, }); JsonRoutes.sendResult(res, { code: 200, |