require('dotenv').config();
const customerDb = require('./services/customerDb');

async function testSearchStatus() {
    console.log("Testing Search for Status 'Menunggu'...");
    try {
        const results = await customerDb.searchCustomer('Menunggu');
        console.log(`Found ${results.length} results.`);
        results.forEach(c => console.log(`- ${c.name} (${c.c_status})`));
    } catch (e) {
        console.error(e);
    }
    process.exit();
}

testSearchStatus();
