filter bug fix

This commit is contained in:
2025-03-20 15:49:52 +05:30
parent f8d99b6389
commit 728b8485f9
2 changed files with 1 additions and 2 deletions

View File

@@ -35,7 +35,6 @@ export function getSortObject(
if (Object.keys(sortObj).length == 0) sortObj["createdAt"] = -1;
console.log(sortObj);
return sortObj;
}

View File

@@ -85,7 +85,7 @@ export function parse(query: string, validFields: Array<string>): ParsedQuery {
}
if (char === "]") {
valueArr.push(token);
valueArr.push(convertValue(token));
result.push({
[field]: { [op === "$eq" ? "$in" : "$nin"]: valueArr },
});