summaryrefslogtreecommitdiffstats
path: root/models/boards.js
diff options
context:
space:
mode:
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,
},
});
}