diff --git a/admin/website-angular/src/app/@core/auth/admin-auth-strategy.service.ts b/admin/website-angular/src/app/@core/auth/admin-auth-strategy.service.ts index 4d5a142c0..8847ebd73 100644 --- a/admin/website-angular/src/app/@core/auth/admin-auth-strategy.service.ts +++ b/admin/website-angular/src/app/@core/auth/admin-auth-strategy.service.ts @@ -289,6 +289,8 @@ export class AdminAuthStrategy extends NbAuthStrategy { private async _logout(): Promise { this.store.clear(); + this.store.serverConnection = '200'; + await this.apollo.getClient().resetStore(); return new NbAuthResult( diff --git a/backend/api/src/services/services.app.ts b/backend/api/src/services/services.app.ts index 81dc6fafd..1d6a76c26 100644 --- a/backend/api/src/services/services.app.ts +++ b/backend/api/src/services/services.app.ts @@ -203,7 +203,7 @@ export class ServicesApp { await this._registerModels(); await this._registerEntityAdministrator(); this._passportSetup(); - this._startExpress(); + await this._startExpress(); this._startSocketIO(); }