summaryrefslogtreecommitdiffstats
path: root/models/boards.js
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2018-09-06 12:06:54 +0300
committerLauri Ojansivu <x@xet7.org>2018-09-06 12:06:54 +0300
commit334c15ff71e1204171948455c65eeef8aa36240b (patch)
tree0a6165e1c36d0a616e760a872c106add8aa38bcd /models/boards.js
parent1aecf8da6b225d6ac2c2b9722c857a9cf27bbf2a (diff)
parente74fb2f5b08b4e033dca71cbfb4b99e91ee142eb (diff)
downloadwekan-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.js5
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,
},
});
}