mirror of
https://github.com/wekan/wekan.git
synced 2025-12-22 02:10:12 +01:00
Fix sandstorm default swimlane creation
This commit is contained in:
parent
c62a2ee11f
commit
f470323ee7
1 changed files with 4 additions and 0 deletions
|
|
@ -252,6 +252,10 @@ if (isSandstorm && Meteor.isServer) {
|
||||||
Users.after.insert((userId, doc) => {
|
Users.after.insert((userId, doc) => {
|
||||||
if (!Boards.findOne(sandstormBoard._id)) {
|
if (!Boards.findOne(sandstormBoard._id)) {
|
||||||
Boards.insert(sandstormBoard, { validate: false });
|
Boards.insert(sandstormBoard, { validate: false });
|
||||||
|
Swimlanes.insert({
|
||||||
|
title: 'Default',
|
||||||
|
boardId: sandstormBoard._id,
|
||||||
|
});
|
||||||
Activities.update(
|
Activities.update(
|
||||||
{ activityTypeId: sandstormBoard._id },
|
{ activityTypeId: sandstormBoard._id },
|
||||||
{ $set: { userId: doc._id }}
|
{ $set: { userId: doc._id }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue