Ignore checklists with missing cards

This commit is contained in:
Ghassen Rjab 2017-09-26 06:58:39 +01:00
parent eb945f26a3
commit f883757552

View file

@ -398,6 +398,7 @@ export class TrelloCreator {
createChecklists(trelloChecklists) {
trelloChecklists.forEach((checklist) => {
if (this.cards[checklist.idCard]) {
// Create the checklist
const checklistToCreate = {
cardId: this.cards[checklist.idCard],
@ -419,6 +420,7 @@ export class TrelloCreator {
});
});
Checklists.direct.update(checklistId, {$set: {items: itemsToCreate}});
}
});
}