hashing wallet id from notification

This commit is contained in:
Javier 2016-01-28 16:40:58 -03:00
parent 0a40c0d128
commit 831d93ab3b
1 changed files with 2 additions and 1 deletions

View File

@ -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),
}
};