Merge branch 'devel' of https://github.com/andresmanelli/wekan into devel

This commit is contained in:
Lauri Ojansivu 2018-09-06 12:06:54 +03:00
commit 334c15ff71
4 changed files with 17 additions and 4 deletions

View file

@ -855,10 +855,15 @@ if (Meteor.isServer) {
permission: req.body.permission || 'private',
color: req.body.color || 'belize',
});
const swimlaneId = Swimlanes.insert({
title: TAPi18n.__('default'),
boardId: id,
});
JsonRoutes.sendResult(res, {
code: 200,
data: {
_id: id,
defaultSwimlaneId: swimlaneId,
},
});
}