Fix: start event instead of starting.
This commit is contained in:
parent
c2f7a2620c
commit
c2d4423720
@ -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
|
||||
}))
|
||||
}
|
||||
|
@ -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')
|
||||
})
|
||||
}
|
||||
|
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user