mirror of
https://github.com/wekan/wekan.git
synced 2025-12-28 21:28:49 +01:00
Export: add _format field
This commit is contained in:
parent
d08e1cc45b
commit
3a52d7d7af
1 changed files with 1 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue