import product catalogue

This commit is contained in:
2026-07-16 17:05:06 +05:30
parent 8a1527cef8
commit 11baf732b7
35 changed files with 2722 additions and 1513 deletions

View File

@@ -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();