From a410dc50bba4059d7e94ecf686d21387c791c9e1 Mon Sep 17 00:00:00 2001 From: Ghassen Rjab Date: Sat, 16 Sep 2017 20:01:54 +0100 Subject: Import sort attribute of checklists and its items from Trello --- models/trelloCreator.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'models') diff --git a/models/trelloCreator.js b/models/trelloCreator.js index b296efdf..e7f98e85 100644 --- a/models/trelloCreator.js +++ b/models/trelloCreator.js @@ -403,6 +403,7 @@ export class TrelloCreator { cardId: this.cards[checklist.idCard], title: checklist.name, createdAt: this._now(), + sort: checklist.pos, }; const checklistId = Checklists.direct.insert(checklistToCreate); // keep track of Trello id => WeKan id @@ -414,6 +415,7 @@ export class TrelloCreator { _id: checklistId + itemsToCreate.length, title: item.name, isFinished: item.state === 'complete', + sort: item.pos, }); }); Checklists.direct.update(checklistId, {$set: {items: itemsToCreate}}); -- cgit v1.2.3-1-g7c22