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