diff --git a/core/application.mjs b/core/application.mjs index 4a45789..29f4990 100644 --- a/core/application.mjs +++ b/core/application.mjs @@ -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 }) }) diff --git a/package.json b/package.json index 7c08f23..ed8432c 100644 --- a/package.json +++ b/package.json @@ -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": {