1
0
mirror of https://github.com/moparisthebest/mail synced 2024-11-26 02:42:17 -05:00

[WO-531] use query parameter instead of JSON parameter

This commit is contained in:
Felix Hammerl 2014-09-12 19:23:02 +02:00
parent ec5edff626
commit 15710f4602
2 changed files with 2 additions and 8 deletions

View File

@ -124,10 +124,7 @@ define(function() {
} }
this._restDao.get({ this._restDao.get({
uri: '/privatekey/user/' + options.userId + '/key/' + options.keyId, uri: '/privatekey/user/' + options.userId + '/key/' + options.keyId + '?ignoreRecovery=true',
payload: {
ignoreRecovery: true
}
}, function(err) { }, function(err) {
// 404: there is no encrypted private key on the server // 404: there is no encrypted private key on the server
if (err && err.code !== 200) { if (err && err.code !== 200) {

View File

@ -179,10 +179,7 @@ define(function(require) {
var keyId = '12345'; var keyId = '12345';
restDaoStub.get.withArgs({ restDaoStub.get.withArgs({
uri: '/privatekey/user/' + emailAddress + '/key/' + keyId, uri: '/privatekey/user/' + emailAddress + '/key/' + keyId + '?ignoreRecovery=true'
payload: {
ignoreRecovery: true
}
}).yields(); }).yields();
privkeyDao.hasPrivateKey({ privkeyDao.hasPrivateKey({