Browse Source

hashing wallet id from notification

activeAddress
Javier 9 years ago
parent
commit
831d93ab3b
  1. 3
      lib/pushnotificationsservice.js

3
lib/pushnotificationsservice.js

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

Loading…
Cancel
Save