Mitigated frontend selection issues
This commit is contained in:
@ -27,7 +27,10 @@ async function get(req: Request, res: Response) {
|
||||
.then((items) => {
|
||||
prisma.storageLocation.findMany({}).then((locations) => {
|
||||
prisma.itemCategory.findMany({}).then((categories) => {
|
||||
res.render(__path + '/src/frontend/items.eta.html', { items: items, currentPage: page, maxPages: pageSize, storeLocs: locations, categories: categories });
|
||||
prisma.contactInfo.findMany({}).then((contactInfo) => {
|
||||
|
||||
res.render(__path + '/src/frontend/items.eta.html', { items: items, currentPage: page, maxPages: pageSize, storeLocs: locations, categories: categories, contactInfo: contactInfo });
|
||||
})
|
||||
});
|
||||
});
|
||||
})
|
||||
|
Reference in New Issue
Block a user