Update allowedFilters in jobs.js to include '_id' and '_reference' for enhanced filtering capabilities in job queries. Cleaned up whitespace for improved code readability.
This commit is contained in:
parent
7606afcf11
commit
664a3a4884
@ -3,7 +3,7 @@ import { isAuthenticated } from '../../keycloak.js';
|
||||
|
||||
const router = express.Router();
|
||||
|
||||
const listAllowedFilters = ['state', 'gcodeFile._id', 'quantity'];
|
||||
const listAllowedFilters = ['state', 'gcodeFile._id', 'quantity', '_id', '_reference'];
|
||||
const propertiesAllowedFilters = ['state'];
|
||||
import {
|
||||
listJobsRouteHandler,
|
||||
@ -16,8 +16,7 @@ import {
|
||||
getJobHistoryRouteHandler,
|
||||
searchJobsRouteHandler,
|
||||
getJobPropertyValuesRouteHandler,
|
||||
|
||||
getJobNeighborsRouteHandler
|
||||
getJobNeighborsRouteHandler,
|
||||
} from '../../services/production/jobs.js';
|
||||
import { convertPropertiesString, getFilter } from '../../utils.js';
|
||||
|
||||
@ -47,7 +46,6 @@ router.get('/search', isAuthenticated, (req, res) => {
|
||||
searchJobsRouteHandler(req, res, search);
|
||||
});
|
||||
|
||||
|
||||
router.post('/', isAuthenticated, (req, res) => {
|
||||
newJobRouteHandler(req, res);
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user