From 134b9fccdd2b4df24bd24af284f63f4dfff48e36 Mon Sep 17 00:00:00 2001 From: Janne Mareike Koschinski <janne@kuschku.de> Date: Thu, 5 May 2022 01:15:46 +0200 Subject: [PATCH] fix: use correct path for groupdb --- sync-simple.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sync-simple.js b/sync-simple.js index 93be489..b83ab85 100644 --- a/sync-simple.js +++ b/sync-simple.js @@ -1,13 +1,14 @@ let { existsSync, readFileSync } = require('fs'); let { join } = require('path'); let { openDatabase } = require('./db'); +let config = require('./load-config'); let actual = require('@actual-app/api'); let merkle = actual.internal.merkle; let Timestamp = actual.internal.timestamp.Timestamp; function getGroupDb(groupId) { - let path = join(__dirname, `user-files/${groupId}.sqlite`); + let path = join(config.userFiles, `${groupId}.sqlite`); let needsInit = !existsSync(path); let db = openDatabase(path); -- GitLab