Browse Source

fix copayer creator id error

activeAddress
Gabriel Bazán 9 years ago
parent
commit
153144ace4
  1. 4
      lib/pushnotificationsservice.js

4
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);

Loading…
Cancel
Save