Enhance filtering for filament stocks: Added 'filament._id' to the allowed filters in the inventory route to improve data retrieval capabilities.
This commit is contained in:
parent
695ff8efc7
commit
0edc085fb7
@ -15,7 +15,7 @@ import {
|
||||
// list of filament stocks
|
||||
router.get('/', isAuthenticated, (req, res) => {
|
||||
const { page, limit, property, search, sort, order } = req.query;
|
||||
const allowedFilters = ['filament', 'state', 'startingWeight', 'currentWeight'];
|
||||
const allowedFilters = ['filament', 'state', 'startingWeight', 'currentWeight', 'filament._id'];
|
||||
const filter = getFilter(req.query, allowedFilters);
|
||||
listFilamentStocksRouteHandler(req, res, page, limit, property, filter, search, sort, order);
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user