feat: dukung SETTINGS_PATH (settings.json di direktori mount/persisten)
This commit is contained in:
1 parent
f27c02309e
commit
6f97430e41
6 files changed
+12
-5
No files matched your search
@@ -11,7 +11,7 @@ const { getSetting, getCurrentDateInTimezone, getNowLocalISO } = require('../con
|
||||
const projectRoot = path.join(__dirname, '..');
|
||||
const backupDir = path.join(projectRoot, 'backups');
|
||||
const dbPath = path.join(projectRoot, 'database', 'billing.db');
|
||||
const settingsPath = path.join(projectRoot, 'settings.json');
|
||||
const { settingsPath } = require('../config/paths');
|
||||
|
||||
// Pastikan direktori backup ada
|
||||
if (!fs.existsSync(backupDir)) {
|
||||
|
||||
Reference in new issue
Block a user