17 lines
471 B
JavaScript
17 lines
471 B
JavaScript
require('dotenv').config();
|
|
const customerDb = require('./services/customerDb');
|
|
|
|
async function testSearch() {
|
|
console.log("Testing Search for 'I Kadek Wirata'...");
|
|
try {
|
|
const results = await customerDb.searchCustomer('I Kadek Wirata');
|
|
console.log(`Found ${results.length} results.`);
|
|
results.forEach(c => console.log(`- ${c.name} (${c.no_wa})`));
|
|
} catch (e) {
|
|
console.error(e);
|
|
}
|
|
process.exit();
|
|
}
|
|
|
|
testSearch();
|