1
0
Fork 0
mirror of synced 2024-09-08 21:51:58 +12:00

Don't add numbering to primary key

This commit is contained in:
Mel O'Hagan 2022-11-24 18:24:38 +00:00
parent b2ee8884d5
commit 57f695ac3c

View file

@ -28,7 +28,11 @@
function addNumbering(filters) {
let count = 1
for (let value of filters) {
if (value.field && value.field?.match(QUERY_START_REGEX) == null) {
if (
value.field &&
value.field?.match(QUERY_START_REGEX) == null &&
value.field !== "_id"
) {
value.field = `${count++}:${value.field}`
}
}