mirror of
https://github.com/orangecoding/fredy.git
synced 2026-06-16 12:31:07 +00:00
fixing some rendering issues in map
This commit is contained in:
@@ -64,12 +64,10 @@ listingsRouter.get('/table', async (req, res) => {
|
||||
});
|
||||
|
||||
listingsRouter.get('/map', async (req, res) => {
|
||||
const { jobId, minPrice, maxPrice } = req.query || {};
|
||||
const { jobId } = req.query || {};
|
||||
|
||||
res.body = listingStorage.getListingsForMap({
|
||||
jobId: nullOrEmpty(jobId) ? null : jobId,
|
||||
minPrice: minPrice ? parseInt(minPrice, 10) : null,
|
||||
maxPrice: maxPrice ? parseInt(maxPrice, 10) : null,
|
||||
userId: req.session.currentUser,
|
||||
isAdmin: isAdminFn(req),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user