Fix: start event instead of starting.

This commit is contained in:
Julien Fontanet 2016-02-17 12:25:27 +01:00
parent c2f7a2620c
commit c2d4423720
3 changed files with 3 additions and 3 deletions

View File

@ -50,7 +50,7 @@ export default class JobExecutor {
}
// The logger is not available until Xo has started.
xo.on('starting', () => xo.getLogger('jobs').then(logger => {
xo.on('start', () => xo.getLogger('jobs').then(logger => {
this._logger = logger
}))
}

View File

@ -21,7 +21,7 @@ class NoSuchResourceSet extends NoSuchObject {
export default class {
constructor (xo) {
this._store = null
xo.on('starting', async () => {
xo.on('start', async () => {
this._store = await xo.getStore('resourceSets')
})
}

View File

@ -53,7 +53,7 @@ export default class {
indexes: ['email']
})
xo.on('starting', async () => {
xo.on('start', async () => {
if (!(await users.exists())) {
const email = 'admin@admin.net'
const password = 'admin'