From aef651fac3a9dee02435c644a341a3e10d1e603d Mon Sep 17 00:00:00 2001 From: Ruslan Konviser Date: Sun, 31 Mar 2024 19:49:20 +0200 Subject: [PATCH] fix: connection issues detection / resolve --- apps/gauzy/src/app/@core/services/server-connection.service.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/gauzy/src/app/@core/services/server-connection.service.ts b/apps/gauzy/src/app/@core/services/server-connection.service.ts index 45b0940178c..a6ce2a35577 100644 --- a/apps/gauzy/src/app/@core/services/server-connection.service.ts +++ b/apps/gauzy/src/app/@core/services/server-connection.service.ts @@ -41,10 +41,12 @@ export class ServerConnectionService { }); } else { console.log(`Skip checking server connection for URL ${url}`); + this.store.serverConnection = 200; resolve(true); } } catch (error) { console.error(`Error checking server connection in ServerConnectionService for URL ${url}`, error); + this.store.serverConnection = 500; reject(error); } });