summaryrefslogtreecommitdiffstats
path: root/models/export.js
diff options
context:
space:
mode:
authorAndrés Manelli <andresmanelli@gmail.com>2018-05-02 14:20:55 -0300
committerAndrés Manelli <andresmanelli@gmail.com>2018-08-11 00:16:31 +0200
commit6adfcb35138259c5969e63d20a68cd6f9e8c393c (patch)
tree5292cdbfecdaa74a03c304bde4e05c838666f476 /models/export.js
parentbce22425280248eda01132ccc58c9f5beefb712a (diff)
downloadwekan-6adfcb35138259c5969e63d20a68cd6f9e8c393c.tar.gz
wekan-6adfcb35138259c5969e63d20a68cd6f9e8c393c.tar.bz2
wekan-6adfcb35138259c5969e63d20a68cd6f9e8c393c.zip
Refactor imported -> linked in models
Diffstat (limited to 'models/export.js')
-rw-r--r--models/export.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/export.js b/models/export.js
index 8d4f5448..ed4c52d9 100644
--- a/models/export.js
+++ b/models/export.js
@@ -45,7 +45,7 @@ class Exporter {
build() {
const byBoard = { boardId: this._boardId };
- const byBoardNoImported = { boardId: this._boardId, importedId: null };
+ const byBoardNoLinked = { boardId: this._boardId, linkedId: null };
// we do not want to retrieve boardId in related elements
const noBoardId = { fields: { boardId: 0 } };
const result = {
@@ -53,7 +53,7 @@ class Exporter {
};
_.extend(result, Boards.findOne(this._boardId, { fields: { stars: 0 } }));
result.lists = Lists.find(byBoard, noBoardId).fetch();
- result.cards = Cards.find(byBoardNoImported, noBoardId).fetch();
+ result.cards = Cards.find(byBoardNoLinked, noBoardId).fetch();
result.swimlanes = Swimlanes.find(byBoard, noBoardId).fetch();
result.comments = CardComments.find(byBoard, noBoardId).fetch();
result.activities = Activities.find(byBoard, noBoardId).fetch();