Persist whatsapp gateway settings in PVC

This commit is contained in:
Deep Koluguri 2026-06-19 11:38:13 -04:00
parent 884562a733
commit ed9a8eced9
1 changed files with 2 additions and 2 deletions

View File

@ -261,8 +261,8 @@ app.post('/api/groups/add-by-link', async (req, res) => {
// ─── Settings ─────────────────────────────────────────────────────────────
const fs = require('fs');
const SETTINGS_FILE = path.join(__dirname, 'settings.json');
const GROUPS_FILE = path.join(__dirname, 'configured_groups.json');
const SETTINGS_FILE = path.join(__dirname, '.wwebjs_auth', 'settings.json');
const GROUPS_FILE = path.join(__dirname, '.wwebjs_auth', 'configured_groups.json');
function loadSettings() {
if (fs.existsSync(SETTINGS_FILE)) {