fix(xo-server/remotes): properly ignore async errors

This commit is contained in:
Julien Fontanet 2018-08-13 16:37:36 +02:00
parent 1985134d94
commit ececbaf201

View File

@ -1,5 +1,6 @@
import { getHandler } from '@xen-orchestra/fs'
import { noSuchObject } from 'xo-common/api-errors'
import { ignoreErrors } from 'promise-toolbox'
import { mapToArray } from '../utils'
import { Remotes } from '../models/remote'
@ -25,7 +26,7 @@ export default class {
const remotes = await this.getAllRemotes()
remotes.forEach(remote => {
this.updateRemote(remote.id, {})
ignoreErrors.call(this.updateRemote(remote.id, {}))
})
})
xo.on('stop', async () => {