mirror of
https://github.com/moparisthebest/mail
synced 2024-11-25 18:32:20 -05:00
[WO-531] use query parameter instead of JSON parameter
This commit is contained in:
parent
ec5edff626
commit
15710f4602
@ -124,10 +124,7 @@ define(function() {
|
||||
}
|
||||
|
||||
this._restDao.get({
|
||||
uri: '/privatekey/user/' + options.userId + '/key/' + options.keyId,
|
||||
payload: {
|
||||
ignoreRecovery: true
|
||||
}
|
||||
uri: '/privatekey/user/' + options.userId + '/key/' + options.keyId + '?ignoreRecovery=true',
|
||||
}, function(err) {
|
||||
// 404: there is no encrypted private key on the server
|
||||
if (err && err.code !== 200) {
|
||||
|
@ -179,10 +179,7 @@ define(function(require) {
|
||||
var keyId = '12345';
|
||||
|
||||
restDaoStub.get.withArgs({
|
||||
uri: '/privatekey/user/' + emailAddress + '/key/' + keyId,
|
||||
payload: {
|
||||
ignoreRecovery: true
|
||||
}
|
||||
uri: '/privatekey/user/' + emailAddress + '/key/' + keyId + '?ignoreRecovery=true'
|
||||
}).yields();
|
||||
|
||||
privkeyDao.hasPrivateKey({
|
||||
|
Loading…
Reference in New Issue
Block a user