From df84a2be9adb2eeee25141588a80d4523d38675d Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Sun, 16 Sep 2018 01:50:36 +0300 Subject: Fix lint errors. --- models/export.js | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'models/export.js') diff --git a/models/export.js b/models/export.js index c65ebf52..0911a631 100644 --- a/models/export.js +++ b/models/export.js @@ -31,7 +31,7 @@ if (Meteor.isServer) { if (exporter.canExport(user)) { JsonRoutes.sendResult(res, { code: 200, - data: exporter.build() + data: exporter.build(), }); } else { // we could send an explicit error message, but on the other hand the only @@ -52,16 +52,16 @@ class Exporter { // we do not want to retrieve boardId in related elements const noBoardId = { fields: { - boardId: 0 - } + boardId: 0, + }, }; const result = { _format: 'wekan-board-1.0.0', }; _.extend(result, Boards.findOne(this._boardId, { fields: { - stars: 0 - } + stars: 0, + }, })); result.lists = Lists.find(byBoard, noBoardId).fetch(); result.cards = Cards.find(byBoardNoLinked, noBoardId).fetch(); @@ -77,21 +77,21 @@ class Exporter { result.actions = []; result.cards.forEach((card) => { result.checklists.push(...Checklists.find({ - cardId: card._id + cardId: card._id, }).fetch()); result.checklistItems.push(...ChecklistItems.find({ - cardId: card._id + cardId: card._id, }).fetch()); result.subtaskItems.push(...Cards.find({ - parentid: card._id + parentid: card._id, }).fetch()); }); result.rules.forEach((rule) => { result.triggers.push(...Triggers.find({ - _id: rule.triggerId + _id: rule.triggerId, }, noBoardId).fetch()); result.actions.push(...Actions.find({ - _id: rule.actionId + _id: rule.actionId, }, noBoardId).fetch()); }); @@ -154,8 +154,8 @@ class Exporter { }); const byUserIds = { _id: { - $in: Object.getOwnPropertyNames(users) - } + $in: Object.getOwnPropertyNames(users), + }, }; // we use whitelist to be sure we do not expose inadvertently // some secret fields that gets added to User later. -- cgit v1.2.3-1-g7c22