summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrés Manelli <andresmanelli@gmail.com>2018-03-16 23:18:26 -0300
committerAndrés Manelli <andresmanelli@gmail.com>2018-03-16 23:18:26 -0300
commitf470323ee746c4e79f07d166d511867408194eb6 (patch)
treec8404511648bf21c43d4d629702da628c6823de4
parentc62a2ee11febf7f98456c97dc3973509b4bfe119 (diff)
downloadwekan-f470323ee746c4e79f07d166d511867408194eb6.tar.gz
wekan-f470323ee746c4e79f07d166d511867408194eb6.tar.bz2
wekan-f470323ee746c4e79f07d166d511867408194eb6.zip
Fix sandstorm default swimlane creation
-rw-r--r--sandstorm.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/sandstorm.js b/sandstorm.js
index 3dcbf03c..3ea85fef 100644
--- a/sandstorm.js
+++ b/sandstorm.js
@@ -252,6 +252,10 @@ if (isSandstorm && Meteor.isServer) {
Users.after.insert((userId, doc) => {
if (!Boards.findOne(sandstormBoard._id)) {
Boards.insert(sandstormBoard, { validate: false });
+ Swimlanes.insert({
+ title: 'Default',
+ boardId: sandstormBoard._id,
+ });
Activities.update(
{ activityTypeId: sandstormBoard._id },
{ $set: { userId: doc._id }}