From 2d5860344412cffef45478ee5f302037b57f485f Mon Sep 17 00:00:00 2001 From: Ben Goldsworthy Date: Sat, 28 Nov 2020 19:51:44 +0000 Subject: [PATCH] Fix server detection --- src/app/providers/api-service.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app/providers/api-service.ts b/src/app/providers/api-service.ts index 59b9e61..b0ec487 100644 --- a/src/app/providers/api-service.ts +++ b/src/app/providers/api-service.ts @@ -42,9 +42,10 @@ export class ApiService { } public checkDatabaseConnection() { + const key = this.sessionKey; return this.http.post( - this.apiUrl, - null + this.apiUrl + '/test-connection', + { session_key: key } ); }