✅ – dmikester1 – 20-34 Jan 31
I have a route in my Node server with this code:
I cannot get the filled in
I cannot get the filled in
linesQCCheckStatus array to get passed back.router.get('/getLinesQCWarningStatus', async (req, res) => {
let linesQCCheckStatus = [];
for (const area of lineAreas) {
const checkID = await storage.getItem('checkID-' + area);
// ... add some stuff to linesQCCheckStatus
console.log({ linesQCCheckStatus });
}
console.log('sending back: ', linesQCCheckStatus);
res.send({ statuses: linesQCCheckStatus });
});router.get('/getLinesQCWarningStatus', async (req, res) => {
let linesQCCheckStatus = [];
for (const area of lineAreas) {
const checkID = await storage.getItem('checkID-' + area);
// ... add some stuff to linesQCCheckStatus
console.log({ linesQCCheckStatus });
}
console.log('sending back: ', linesQCCheckStatus);
res.send({ statuses: linesQCCheckStatus });
});linesQCCheckStatuslinesQCCheckStatus array to get passed back.