application: Emit event when updating changes
All checks were successful
continuous-integration/appveyor/branch AppVeyor build succeeded

This commit is contained in:
Jonatan Nilsson 2022-03-28 15:15:30 +00:00
parent a5239d0c27
commit 90d4e7ab81
2 changed files with 5 additions and 1 deletions

View file

@ -119,11 +119,15 @@ export default class Application extends EventEmitter {
}
if (this.updating) return null
this.updating = true
this.emit('updating', this.updating)
return this._update()
.then((result) => {
this.updating = false
this.emit('updating', this.updating)
return this.ctx.db.write()
.then(function() { return result })
})

View file

@ -1,6 +1,6 @@
{
"name": "service-core",
"version": "3.0.0-beta.12",
"version": "3.0.0-beta.13",
"description": "Core boiler plate code to install node server as windows service",
"main": "index.mjs",
"scripts": {