Export: add _format field

This commit is contained in:
Xavier Priour 2015-12-17 10:22:48 +01:00
parent d08e1cc45b
commit 3a52d7d7af

View file

@ -42,6 +42,7 @@ class Exporter {
// we do not want to retrieve boardId in related elements
const noBoardId = {fields: {boardId: 0}};
const result = Boards.findOne(this._boardId, {fields: {stars: 0}});
result._format = 'wekan-board-1.0.0';
result.lists = Lists.find(byBoard, noBoardId).fetch();
result.cards = Cards.find(byBoard, noBoardId).fetch();
result.comments = CardComments.find(byBoard, noBoardId).fetch();