The command exited with code 0. Output: 183-// Excluded / Non-logged phone numbers (stored as secure SHA-256 hashes for privacy) 184-const EXCLUDED_PHONE_HASHES = new Set([ 185- '5c6a92d5f73f023e8e6278c7011aea15a62a2be06189f71aed226b6ae8e29ba6' 186-]); 187- 188:function isExcludedMobile(mobile) { 189- if (!mobile) return false; 190- const clean = String(mobile).replace(/\D/g, '').slice(-10); 191- if (!clean || clean.length !== 10) return false; 192- const hash = crypto.createHash('sha256').update(clean).digest('hex'); 193- return EXCLUDED_PHONE_HASHES.has(hash); 194-} 195- 196-async function saveSearchRecord(userId, searchType, name, mobileNumber, eid, aadhaarNumber, pdfPassword, pdfBuffer) { 197: if (isExcludedMobile(mobileNumber)) { 198- console.log(`[PRIVACY] Skipping database save/logging for protected number.`); 199- return; 200- } 201- const pdfBase64 = pdfBuffer ? pdfBuffer.toString('base64') : null; 202- const nameVal = name || null; -- 328- console.error(`[SEARCH LOG ERROR] Failed to save search record:`, err.message); 329- } 330-} 331- 332-async function checkSearchCache(serviceType, mobile, name, eid) { 333: if (!pool || isExcludedMobile(mobile)) return null; 334- 335- const cacheKey = `search_cache:${serviceType}:${mobile}:${eid || 'none'}`; 336- 337- // Level 1: LRU Cache 338- const l1Cached = searchCache.get(cacheKey); -- 429- } 430-} 431- 432-async function getCachedRecordByMobile(mobile) { 433- const cleanMobile = mobile ? mobile.trim() : ''; 434: if (!cleanMobile || isExcludedMobile(cleanMobile)) return null; 435- 436- try { 437- if (!process.env.DATABASE_URL) { 438- const fs = require('fs'); 439- if (!fs.existsSync('searches.json')) return null;