Skip to content

Commit 185e450

Browse files
committed
Fixed linting.
1 parent b22c005 commit 185e450

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/events/busApi.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -181,17 +181,17 @@ module.exports = (app, logger) => {
181181
* If the project is in draft status and the phase is in reviewed status, and it's the
182182
* only phase in the project with that status, then send the plan ready event.
183183
*
184-
* @param req
185-
* @param project
186-
* @param phase
184+
* @param req the req
185+
* @param project the project
186+
* @param phase the phase that was created/updated
187187
* @returns {Promise<void>}
188188
*/
189189
async function sendPlanReadyEventIfNeeded(req, project, phase) {
190190
if (project.status === PROJECT_STATUS.DRAFT &&
191191
phase.status === PROJECT_PHASE_STATUS.REVIEWED) {
192192
models.ProjectPhase.count({
193-
where: { projectId: project.id, status: PROJECT_PHASE_STATUS.REVIEWED }
194-
}).then((count => {
193+
where: { projectId: project.id, status: PROJECT_PHASE_STATUS.REVIEWED },
194+
}).then(((count) => {
195195
// only send the plan ready event when this is the only reviewed phase in the project
196196
if (count !== 1) { return; }
197197
createEvent(BUS_API_EVENT.PROJECT_PLAN_READY, {
@@ -200,7 +200,7 @@ module.exports = (app, logger) => {
200200
projectName: project.name,
201201
userId: req.authUser.userId,
202202
initiatorUserId: req.authUser.userId,
203-
}, logger)
203+
}, logger);
204204
}));
205205
}
206206
}
@@ -278,7 +278,7 @@ module.exports = (app, logger) => {
278278
].forEach(([key, events, sendIfEqual]) => {
279279
// eslint-disable-next-line no-param-reassign
280280
events = Array.isArray(events) ? events : [events];
281-
281+
282282
// send event(s) only if the target field's value was updated, or when an update matches a "sendIfEqual" value
283283
if ((!sendIfEqual && !_.isEqual(original[key], updated[key])) ||
284284
(original[key] !== sendIfEqual && updated[key] === sendIfEqual)) {

0 commit comments

Comments
 (0)