summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Priour <xavier.priour@bubblyware.com>2015-12-17 10:22:48 +0100
committerXavier Priour <xavier.priour@bubblyware.com>2015-12-17 10:22:48 +0100
commit3a52d7d7af838037b6e933203ffb661ff2e13b5e (patch)
tree7de566277b29e2cc2e359742db946940769d60bf
parentd08e1cc45b7f894f360f3a8a89e235ccc47b8f96 (diff)
downloadwekan-3a52d7d7af838037b6e933203ffb661ff2e13b5e.tar.gz
wekan-3a52d7d7af838037b6e933203ffb661ff2e13b5e.tar.bz2
wekan-3a52d7d7af838037b6e933203ffb661ff2e13b5e.zip
Export: add _format field
-rw-r--r--models/export.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/models/export.js b/models/export.js
index 8d1be64e..c20053ad 100644
--- a/models/export.js
+++ b/models/export.js
@@ -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();