application: Emit event when updating changes
All checks were successful
continuous-integration/appveyor/branch AppVeyor build succeeded
All checks were successful
continuous-integration/appveyor/branch AppVeyor build succeeded
This commit is contained in:
parent
a5239d0c27
commit
90d4e7ab81
2 changed files with 5 additions and 1 deletions
|
@ -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 })
|
||||
})
|
||||
|
|
|
@ -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": {
|
||||
|
|
Loading…
Reference in a new issue