mirror of
https://github.com/wekan/wekan.git
synced 2025-12-17 07:50:12 +01:00
Export wekan: do not export board.stars
This commit is contained in:
parent
0608b90d3b
commit
efe7c21d57
1 changed files with 7 additions and 6 deletions
|
|
@ -20,12 +20,13 @@ class Exporter {
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
const byBoard = {boardId: this._boardId};
|
const byBoard = {boardId: this._boardId};
|
||||||
const fields = {fields: {boardId: 0}};
|
// we do not want to retrieve boardId in related elements
|
||||||
const result = Boards.findOne(this._boardId);
|
const noBoardId = {fields: {boardId: 0}};
|
||||||
result.lists = Lists.find(byBoard, fields).fetch();
|
const result = Boards.findOne(this._boardId, {fields: {stars: 0}});
|
||||||
result.cards = Cards.find(byBoard, fields).fetch();
|
result.lists = Lists.find(byBoard, noBoardId).fetch();
|
||||||
result.comments = CardComments.find(byBoard, fields).fetch();
|
result.cards = Cards.find(byBoard, noBoardId).fetch();
|
||||||
result.activities = Activities.find(byBoard, fields).fetch();
|
result.comments = CardComments.find(byBoard, noBoardId).fetch();
|
||||||
|
result.activities = Activities.find(byBoard, noBoardId).fetch();
|
||||||
|
|
||||||
// we also have to export some user data - as the other elements only include id
|
// we also have to export some user data - as the other elements only include id
|
||||||
// but we have to be careful:
|
// but we have to be careful:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue