diff --git a/lib/pushnotificationsservice.js b/lib/pushnotificationsservice.js index 7237847..8b1c695 100644 --- a/lib/pushnotificationsservice.js +++ b/lib/pushnotificationsservice.js @@ -91,6 +91,8 @@ PushNotificationsService.prototype._sendPushNotifications = function(notificatio var notifType = PUSHNOTIFICATIONS_TYPES[notification.type]; if (!notifType) return cb(); + console.log(notification); + self._getRecipientsList(notification, function(err, recipientsList) { if (err) return cb(err); @@ -162,7 +164,7 @@ PushNotificationsService.prototype._getRecipientsList = function(notification, c })); var recipientsList = _.reject(self._join(wallet.copayers, recipients), { - id: notification.creatorId + copayerId: notification.creatorId }); return cb(null, recipientsList);