Types
This commit is contained in:
parent
5caf20635a
commit
0667449463
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue