From 5cac77a975983761dd509fa3df73c5cd53371729 Mon Sep 17 00:00:00 2001 From: Tom Butcher Date: Fri, 5 Sep 2025 23:26:04 +0100 Subject: [PATCH] Enhance printer filtering: Added 'host._id' to the allowed filters in the printers route to improve data retrieval capabilities. --- src/routes/production/printers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/production/printers.js b/src/routes/production/printers.js index fac3329..838e301 100644 --- a/src/routes/production/printers.js +++ b/src/routes/production/printers.js @@ -15,7 +15,7 @@ import { convertPropertiesString, getFilter } from '../../utils.js'; // list of printers router.get('/', isAuthenticated, (req, res) => { const { page, limit, property, search, sort, order } = req.query; - const allowedFilters = ['tags']; + const allowedFilters = ['tags', 'host._id']; const filter = getFilter(req.query, allowedFilters); listPrintersRouteHandler(req, res, page, limit, property, filter, search, sort, order); });