From 539c1ab87a098a7ddfd23cdbd663441bd609b73d Mon Sep 17 00:00:00 2001 From: zebby76 Date: Tue, 1 May 2018 07:55:41 +0200 Subject: Define sort property on swimlanes and lists --- models/trelloCreator.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'models/trelloCreator.js') 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()}}); -- cgit v1.2.3-1-g7c22