hashing wallet id from notification
This commit is contained in:
parent
0a40c0d128
commit
831d93ab3b
|
@ -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),
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue