diff options
author | Lauri Ojansivu <x@xet7.org> | 2018-09-06 12:06:54 +0300 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2018-09-06 12:06:54 +0300 |
commit | 334c15ff71e1204171948455c65eeef8aa36240b (patch) | |
tree | 0a6165e1c36d0a616e760a872c106add8aa38bcd /models/boards.js | |
parent | 1aecf8da6b225d6ac2c2b9722c857a9cf27bbf2a (diff) | |
parent | e74fb2f5b08b4e033dca71cbfb4b99e91ee142eb (diff) | |
download | wekan-334c15ff71e1204171948455c65eeef8aa36240b.tar.gz wekan-334c15ff71e1204171948455c65eeef8aa36240b.tar.bz2 wekan-334c15ff71e1204171948455c65eeef8aa36240b.zip |
Merge branch 'devel' of https://github.com/andresmanelli/wekan into devel
Diffstat (limited to 'models/boards.js')
-rw-r--r-- | models/boards.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/models/boards.js b/models/boards.js index 1acaeae8..2a21d6da 100644 --- a/models/boards.js +++ b/models/boards.js @@ -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, }, }); } |