fix user field
This commit is contained in:
parent
bcd840c7fc
commit
9d4afc4402
|
@ -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);
|
||||
|
|
|
@ -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();
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue