diff --git a/lib/pushnotificationsservice.js b/lib/pushnotificationsservice.js index a200714..4456451 100644 --- a/lib/pushnotificationsservice.js +++ b/lib/pushnotificationsservice.js @@ -10,6 +10,7 @@ var fs = require('fs'); var path = require('path'); var Utils = require('./common/utils'); var Model = require('./model'); +var sjcl = require('sjcl'); var log = require('npmlog'); log.debug = log.verbose; @@ -123,7 +124,7 @@ PushNotificationsService.prototype._sendPushNotifications = function(notificatio "data": { "title": content.plain.subject, "message": content.plain.body, - "walletId": notification.walletId, + "walletId": sjcl.hash.sha256.hash(notification.walletId), } };