From 2ca6f6ad9639b3b3f36669dea2aa97dbd458a4f7 Mon Sep 17 00:00:00 2001 From: Jason Kulatunga Date: Sat, 29 Oct 2022 13:21:21 -0700 Subject: [PATCH] fixign tests. --- frontend/src/app/services/fasten-db.service.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/services/fasten-db.service.ts b/frontend/src/app/services/fasten-db.service.ts index 76f99ceb..1e7ca515 100644 --- a/frontend/src/app/services/fasten-db.service.ts +++ b/frontend/src/app/services/fasten-db.service.ts @@ -20,6 +20,7 @@ PouchDB.plugin(PouchCrypto); import PouchAuth from 'pouchdb-authentication' import {PouchdbCrypto} from '../../lib/database/plugins/crypto'; import {environment} from '../../environments/environment'; +import {GetEndpointAbsolutePath} from '../../lib/utils/endpoint_absolute_path'; PouchDB.plugin(PouchAuth); @Injectable({ @@ -66,7 +67,7 @@ export class FastenDbService extends PouchdbRepository { if (!(fastenApiEndpointBase.indexOf('http://') === 0 || fastenApiEndpointBase.indexOf('https://') === 0)){ //relative, we need to retrieve the absolutePath from base - fastenApiEndpointBase = this.GetEndpointAbsolutePath(globalThis.location,fastenApiEndpointBase) + fastenApiEndpointBase = GetEndpointAbsolutePath(globalThis.location,fastenApiEndpointBase) }