Skip to content

Commit 682118c

Browse files
Add safety check for NOT filter child property
Co-authored-by: xuyushun441-sys <255036401+xuyushun441-sys@users.noreply.github.com>
1 parent adacc16 commit 682118c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/drivers/redis/src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,9 @@ export class RedisDriver implements Driver {
701701
} else if (condition.type === 'not') {
702702
// Handle NOT filter: { type: 'not', child: {...} }
703703
console.warn('[RedisDriver] NOT operator in filters is not fully supported in legacy format');
704-
return this.convertFilterConditionToArray(condition.child);
704+
if (condition.child) {
705+
return this.convertFilterConditionToArray(condition.child);
706+
}
705707
}
706708
}
707709

0 commit comments

Comments
 (0)