summaryrefslogtreecommitdiffstats
path: root/models/trelloCreator.js
diff options
context:
space:
mode:
authorzebby76 <zebby76@gmail.com>2018-05-01 07:55:41 +0200
committerzebby76 <zebby76@gmail.com>2018-05-01 07:55:41 +0200
commit539c1ab87a098a7ddfd23cdbd663441bd609b73d (patch)
treead95b91805bea32b5d9d91941190ff3807eb13a6 /models/trelloCreator.js
parent359d0b376f203a4d309a3a222d35a16b4ed161e3 (diff)
downloadwekan-539c1ab87a098a7ddfd23cdbd663441bd609b73d.tar.gz
wekan-539c1ab87a098a7ddfd23cdbd663441bd609b73d.tar.bz2
wekan-539c1ab87a098a7ddfd23cdbd663441bd609b73d.zip
Define sort property on swimlanes and lists
Diffstat (limited to 'models/trelloCreator.js')
-rw-r--r--models/trelloCreator.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/models/trelloCreator.js b/models/trelloCreator.js
index 8920ff77..30f0bc2b 100644
--- a/models/trelloCreator.js
+++ b/models/trelloCreator.js
@@ -379,6 +379,7 @@ export class TrelloCreator {
// we require.
createdAt: this._now(this.createdAt.lists[list.id]),
title: list.name,
+ sort: list.pos,
};
const listId = Lists.direct.insert(listToCreate);
Lists.direct.update(listId, {$set: {'updatedAt': this._now()}});
@@ -410,6 +411,7 @@ export class TrelloCreator {
// we require.
createdAt: this._now(),
title: 'Default',
+ sort: 1,
};
const swimlaneId = Swimlanes.direct.insert(swimlaneToCreate);
Swimlanes.direct.update(swimlaneId, {$set: {'updatedAt': this._now()}});