Skip to content
Snippets Groups Projects
Verified Commit 134b9fcc authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

fix: use correct path for groupdb

parent 4c3477c9
No related branches found
No related tags found
No related merge requests found
Pipeline #2773 passed
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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment