fixes
This commit is contained in:
parent
ccdc744748
commit
3b53f5ac11
@ -16,7 +16,6 @@ get.params = {
|
||||
}
|
||||
|
||||
export async function list ({id}) {
|
||||
console.log(id)
|
||||
return await this.listRemoteBackups(id)
|
||||
}
|
||||
|
||||
|
@ -8,15 +8,11 @@ import {
|
||||
export default class RemoteHandlerAbstract {
|
||||
constructor (remote) {
|
||||
this._remote = parse({...remote})
|
||||
if (!this._remote.type === this.type) {
|
||||
if (this._remote.type !== this.type) {
|
||||
throw new Error('Incorrect remote type')
|
||||
}
|
||||
}
|
||||
|
||||
_getInfo (remote) {
|
||||
throw new Error('Not implemented')
|
||||
}
|
||||
|
||||
get type () {
|
||||
throw new Error('Not implemented')
|
||||
}
|
||||
|
@ -112,7 +112,9 @@ export default class {
|
||||
async forgetAllRemotes () {
|
||||
const remotes = await this.getAllRemotes()
|
||||
for (let remote of remotes) {
|
||||
await remote.handler.forget()
|
||||
try {
|
||||
(await this.getRemoteHandler(remote)).forget()
|
||||
} catch (_) {}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user