Merge remote-tracking branch 'andresmanelli/edge' into edge

This commit is contained in:
Lauri Ojansivu 2019-03-07 02:03:34 +02:00
commit 97a9e92969

View file

@ -517,3 +517,11 @@ Migrations.add('add-templates', () => {
});
});
});
Migrations.add('fix-circular-reference', () => {
Cards.find().forEach((card) => {
if (card.parentId === card._id) {
Cards.update(card._id, {$set: {parentId: ''}}, noValidateMulti);
}
});
});