Update allowed filters and sorters in stock audit levels to include 'tags' for enhanced categorization and sorting capabilities.
All checks were successful
farmcontrol/farmcontrol-api/pipeline/head This commit looks good
All checks were successful
farmcontrol/farmcontrol-api/pipeline/head This commit looks good
This commit is contained in:
parent
e1ac5bfba1
commit
2af78c76f4
@ -5,8 +5,8 @@ import { getFilter, convertPropertiesString, getSort } from '../../utils.js';
|
|||||||
|
|
||||||
const router = express.Router();
|
const router = express.Router();
|
||||||
|
|
||||||
const listAllowedFilters = ['name', 'createdAt', 'updatedAt', '_reference'];
|
const listAllowedFilters = ['name', 'createdAt', 'updatedAt', '_reference', 'tags'];
|
||||||
const listAllowedSorters = ['name', 'createdAt', '_id', 'updatedAt'];
|
const listAllowedSorters = ['name', 'createdAt', '_id', 'updatedAt', 'tags'];
|
||||||
const propertiesAllowedFilters = ['tags'];
|
const propertiesAllowedFilters = ['tags'];
|
||||||
|
|
||||||
import {
|
import {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user