|
|
@@ -93,9 +93,8 @@ function retrieveBackupPackage(userId, networkId, code, password, backupId, mess |
|
|
|
return fetch( |
|
|
|
`${config.apiUrl}/users/${userId}/networks/${networkId}/actions/keys/${code}/backups/${backupId}/download`, |
|
|
|
util.postWithAuth({ name: 'password', value: password }) |
|
|
|
).then(util.handleCrudResponse(messages, errors)) |
|
|
|
.then(netKeyObj => netKeyObj.data) |
|
|
|
.then(util.handleDataToDownloadAsFile('restore.' + networkId + '.key', 'text/plain')); |
|
|
|
).then(r => r.text()) |
|
|
|
.then(util.handleDataToDownloadAsFile('backup.' + networkId + '.zip.cpt', 'application/octet-stream')); |
|
|
|
} |
|
|
|
|
|
|
|
function getNetworkBackups(userId, networkId, messages, errors) { |
|
|
|