Aplikasi billing & manajemen ISP (fiber optic) — PWA pelanggan, portal teknisi & kolektor, admin panel lengkap, multi-vendor OLT, RADIUS, WhatsApp/Telegram, pembayaran QRIS. Kredit & lisensi (ISC): - Base kode & repo: alijayanet/billing-rtrw oleh Alijaya Net — terima kasih banyak atas base kode dan repo yang bermanfaat. - Add-on: GoWA, LibreSpeed/OpenSpeedTest, Uptime Kuma, notification-forwarder. - Dikembangkan menjadi OPEN-ISP oleh oxpoe — https://github.com/oxpoe/open-isp
37 lines
1.1 KiB
JavaScript
37 lines
1.1 KiB
JavaScript
/**
|
|
* Script untuk memeriksa data Mikhmon di database
|
|
*/
|
|
const path = require('path');
|
|
const Database = require('better-sqlite3');
|
|
|
|
const dbPath = path.join(__dirname, '../database/billing.db');
|
|
const db = new Database(dbPath);
|
|
|
|
console.log('=== MEMERIKSA DATA MIKHMON DI DATABASE ===\n');
|
|
|
|
// Cari profiles dengan Mikhmon
|
|
const profiles = db.prepare(`
|
|
SELECT name, onLogin
|
|
FROM hotspot_profiles
|
|
WHERE onLogin LIKE '%rem%'
|
|
LIMIT 10
|
|
`).all();
|
|
|
|
console.log(`Ditemukan ${profiles.length} profile dengan Mikhmon:\n`);
|
|
|
|
if (profiles.length === 0) {
|
|
console.log('Tidak ada profile dengan Mikhmon di database.');
|
|
} else {
|
|
profiles.forEach((p, i) => {
|
|
console.log(`--- Profile ${i + 1}: ${p.name} ---`);
|
|
console.log('onLogin:', p.onLogin ? p.onLogin.substring(0, 150) + (p.onLogin.length > 150 ? '...' : '') : 'null');
|
|
console.log('');
|
|
});
|
|
}
|
|
|
|
// Cek semua profiles
|
|
const allProfiles = db.prepare('SELECT name, onLogin FROM hotspot_profiles LIMIT 20').all();
|
|
console.log(`\nTotal profiles di database: ${allProfiles.length}`);
|
|
|
|
db.close();
|