Skip to content

Commit 667441e

Browse files
author
Vikas Agarwal
committed
Better to not break promise chain
1 parent 029c700 commit 667441e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

connect/connectNotificationServer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,10 +413,10 @@ const handler = (topic, message, logger, callback) => {
413413
}
414414

415415
// get project details
416-
service.getProject(projectId).then(project => {
416+
return service.getProject(projectId).then(project => {
417417
let allNotifications = [];
418418

419-
Promise.all([
419+
return Promise.all([
420420
// the order in this list defines the priority of notification for the SAME user
421421
// upper in this list - higher priority
422422
// NOTE: always add all handles here, they have to check by themselves:

0 commit comments

Comments
 (0)