feat: dukung SETTINGS_PATH (settings.json di direktori mount/persisten)

This commit is contained in:
oxpoe
2026-10-13 03:29:36 +07:00
parent f27c02309e
commit 6f97430e41
6 changed files with 12 additions and 5 deletions

View File

@@ -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)) {