The command exited with code 0. Output: index.js: const dbConfig = { index.js: dbConfig.ssl = { rejectUnauthorized: false }; index.js: pool = new Pool(dbConfig); index.js: // Initialize DB schema automatically index.js: async function initDb() { index.js: initDb(); index.js: console.log("DATABASE_URL is not configured in .env. Using local JSON database (db.json) for testing."); index.js: // Cleanup RETRIEVE_SMS if DOWNLOAD_PDF / EID_TO_PDF is saved (local JSON db) index.js: // Cleanup RETRIEVE_SMS if DOWNLOAD_PDF / EID_TO_PDF is saved (PostgreSQL db) index.js:async function getCachedRecordByMobile(mobile) { index.js: console.error("Error in getCachedRecordByMobile:", err.message); index.js: const joinKeyboardButtons = missing.map(ch => [{ text: ch.label.replace(/[^a-zA-Z0-9 ]/g, "").trim() || "Join Channel", url: ch.link, style: "primary" }]); index.js: joinKeyboardButtons.push([{ text: 'Joined (Check)', callback_data: 'check_joined', style: 'success' }]); index.js: const joinKeyboard = Markup.inlineKeyboard(joinKeyboardButtons); index.js: let db = {}; index.js: if (fs.existsSync('db.json')) { index.js: try { db = JSON.parse(fs.readFileSync('db.json', 'utf8')); } catch (e) { index.js: return db[userId]?.thread_id || null; index.js: let db = {}; index.js: if (fs.existsSync('db.json')) { index.js: try { db = JSON.parse(fs.readFileSync('db.json', 'utf8')); } catch (e) { index.js: if (!db[userId]) { index.js: db[userId] = { name: firstName, credits: 0, thread_id: threadId }; index.js: db[userId].thread_id = threadId; index.js: fs.writeFileSync('db.json', JSON.stringify(db, null, 2)); index.js: console.error("DB error fetching daily free search:", e.message); index.js: console.error("DB error in markDailyFreeSearchUsed:", e.message); index.js: let db = {}; index.js: if (fs.existsSync('db.json')) { index.js: try { db = JSON.parse(fs.readFileSync('db.json', 'utf8')); } catch (e) { index.js: if (db[userId] !== undefined) { index.js: return db[userId].credits; index.js: db[userId] = { name, credits: defaultCredits }; index.js: fs.writeFileSync('db.json', JSON.stringify(db, null, 2)); index.js: if (!fs.existsSync('db.json')) return true; index.js: const db = JSON.parse(fs.readFileSync('db.json', 'utf8')); index.js: return !db[userId] || !db[userId].plan_type; index.js: // If referrer not yet initialized in DB, create initial entry index.js: if (fs.existsSync('db.json')) { index.js: const db = JSON.parse(fs.readFileSync('db.json', 'utf8')); index.js: if (db[referrerId]) { index.js: validReferrer = db[referrerId]; index.js: db[referrerId] = { name: 'VIP Member', credits: 0, total_referrals: 0, referral_earnings: 0 }; index.js: fs.writeFileSync('db.json', JSON.stringify(db, null, 2)); index.js: validReferrer = db[referrerId]; index.js: let db = {}; index.js: if (fs.existsSync('db.json')) { index.js: try { db = JSON.parse(fs.readFileSync('db.json', 'utf8')); } catch (e) { index.js: db[userId] = { index.js: if (validReferrer && db[referrerId]) { index.js: db[referrerId].credits = (db[referrerId].credits || 0) + 1; index.js: db[referrerId].total_referrals = (db[referrerId].total_referrals || 0) + 1; index.js: db[referrerId].referral_earnings = (db[referrerId].referral_earnings || 0) + 1; index.js: updatedReferrerCredits = db[referrerId].credits; index.js: updatedReferrerTotal = db[referrerId].total_referrals; index.js: referrerName = db[referrerId].name || referrerName; index.js: fs.writeFileSync('db.json', JSON.stringify(db, null, 2)); index.js: const cachedRecord = await getCachedRecordByMobile(cleanMobile); index.js: if (fs.existsSync('db.json')) { index.js: const db = JSON.parse(fs.readFileSync('db.json', 'utf8')); index.js: if (db[userId]) { index.js: totalReferrals = db[userId].total_referrals || 0; index.js: totalEarnings = db[userId].referral_earnings || 0;