Explorar o código

Fix sandstorm default swimlane creation

Andrés Manelli %!s(int64=7) %!d(string=hai) anos
pai
achega
f470323ee7
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      sandstorm.js

+ 4 - 0
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 }}