From 2867f845df4bc5068ab3e2be7931d2ff19a39b20 Mon Sep 17 00:00:00 2001 From: Djorkaeff Alexandre Date: Wed, 23 Oct 2019 16:26:57 -0300 Subject: [PATCH] fix server with subpath (#1322) --- app/lib/database/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/database/index.js b/app/lib/database/index.js index 7216779d4..b385a9b63 100644 --- a/app/lib/database/index.js +++ b/app/lib/database/index.js @@ -52,7 +52,7 @@ class DB { } setActiveDB(database = '') { - const path = database.replace(/(^\w+:|^)\/\//, ''); + const path = database.replace(/(^\w+:|^)\/\//, '').replace(/\//, '.'); const dbName = `${ appGroupPath }${ path }.db`; const adapter = new SQLiteAdapter({