summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzago <arnaud.zago@gmail.com>2017-07-07 11:37:35 +0200
committerzago <arnaud.zago@gmail.com>2017-07-07 11:37:35 +0200
commitcbcf10a02b75b574d027fd9bd13eeec8820b816e (patch)
tree8444b973159151d751f8fd601faa8d9fc9079d43
parentcac82e4330bd78bef0870040936d92191e7a8cea (diff)
downloadwekan-cbcf10a02b75b574d027fd9bd13eeec8820b816e.tar.gz
wekan-cbcf10a02b75b574d027fd9bd13eeec8820b816e.tar.bz2
wekan-cbcf10a02b75b574d027fd9bd13eeec8820b816e.zip
fixe travis
-rw-r--r--models/cards.js36
1 files changed, 18 insertions, 18 deletions
diff --git a/models/cards.js b/models/cards.js
index 64b9c3db..86c907ed 100644
--- a/models/cards.js
+++ b/models/cards.js
@@ -405,25 +405,25 @@ if (Meteor.isServer) {
const paramListId = req.params.listId;
const check = Users.findOne({_id:req.body.authorId});
if(typeof check !== 'undefined') {
- const id = Cards.insert({
- title: req.body.title,
- boardId: paramBoardId,
- listId: paramListId,
- description: req.body.description,
- userId: req.body.authorId,
- sort: 0,
- members: [req.body.authorId],
- });
- JsonRoutes.sendResult(res, {
- code: 200,
- data: {
- _id: id,
- },
- });
+ const id = Cards.insert({
+ title: req.body.title,
+ boardId: paramBoardId,
+ listId: paramListId,
+ description: req.body.description,
+ userId: req.body.authorId,
+ sort: 0,
+ members: [req.body.authorId],
+ });
+ JsonRoutes.sendResult(res, {
+ code: 200,
+ data: {
+ _id: id,
+ },
+ });
}else{
- JsonRoutes.sendResult(res, {
- code: 401,
- });
+ JsonRoutes.sendResult(res, {
+ code: 401,
+ });
}
});