import product catalogue
This commit is contained in:
@@ -1,4 +1,15 @@
|
||||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
import fetch from 'node-fetch';
|
||||
|
||||
console.log("Checking API structure...");
|
||||
async function test() {
|
||||
const res = await fetch('https://fiesta.nearle.app/live/api/v1/web/users/getallusers?tenantid=1135');
|
||||
const json = await res.json();
|
||||
const users = json.details || json;
|
||||
|
||||
const rsPuramUser = users.find(u => u.userid === 1409 || (u.email && u.email.includes('rspuram')));
|
||||
console.log('RS Puram User:', JSON.stringify(rsPuramUser, null, 2));
|
||||
|
||||
const gandhipuramUser = users.find(u => u.userid === 1406 || (u.email && u.email.includes('gandhipuram')));
|
||||
console.log('Gandhipuram User:', JSON.stringify(gandhipuramUser, null, 2));
|
||||
}
|
||||
|
||||
test();
|
||||
|
||||
Reference in New Issue
Block a user