This commit is contained in:
Adria Navarro 2024-08-06 18:25:35 +02:00
parent 5caf20635a
commit 0667449463
1 changed files with 2 additions and 2 deletions

View File

@ -678,7 +678,7 @@ export const runQuery = (docs: Record<string, any>[], query: SearchFilters) => {
const and = match( const and = match(
LogicalOperator.AND, LogicalOperator.AND,
(docValue: Record<string, any>, conditions: any) => { (docValue: Record<string, any>, conditions: SearchFilters[]) => {
if (!conditions.length) { if (!conditions.length) {
return false return false
} }
@ -693,7 +693,7 @@ export const runQuery = (docs: Record<string, any>[], query: SearchFilters) => {
) )
const or = match( const or = match(
LogicalOperator.OR, LogicalOperator.OR,
(docValue: Record<string, any>, conditions: any) => { (docValue: Record<string, any>, conditions: SearchFilters[]) => {
if (!conditions.length) { if (!conditions.length) {
return false return false
} }