fix user field

This commit is contained in:
Gabriel Bazán 2016-01-18 16:28:11 -03:00
parent bcd840c7fc
commit 9d4afc4402
2 changed files with 2 additions and 4 deletions

View File

@ -2433,7 +2433,7 @@ WalletService.prototype.pushNotificationsSubscribe = function(opts, cb) {
var self = this;
opts.user = self.walletId + '$' + self.copayerId + '$' + opts.token;
opts.user = self.walletId + '$' + self.copayerId;
request({
url: config.pushNotificationsOpts.pushServerUrl + '/subscribe',
@ -2453,7 +2453,7 @@ WalletService.prototype.pushNotificationsUnsubscribe = function(token, cb) {
method: 'POST',
json: true,
body: {
user: self.walletId + '$' + self.copayerId + '$' + token
user: self.walletId + '$' + self.copayerId
}
}, function(err, response) {
return cb(err, response);

View File

@ -5478,7 +5478,6 @@ describe('Wallet service', function() {
});
args[0].body.user.should.contain(wallet.copayers[0].id);
args[0].body.user.should.contain(wallet.id);
args[0].body.user.should.contain('DEVICE_TOKEN');
done();
});
});
@ -5498,7 +5497,6 @@ describe('Wallet service', function() {
args[0].body.user.should.contain(wallet.copayers[0].id);
args[0].body.user.should.contain(wallet.id);
args[0].body.user.should.contain('DEVICE_TOKEN');
done();
});
});