mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-13 03:40:48 +00:00
null check in mongo driver
Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
This commit is contained in:
parent
3c69fa7d11
commit
5e2d48b8e3
@ -38,7 +38,7 @@ abstract class MongoAdapterBase extends TxProcessor {
|
||||
const translated: any = {}
|
||||
for (const key in query) {
|
||||
const value = (query as any)[key]
|
||||
if (typeof value === 'object') {
|
||||
if (value !== null && typeof value === 'object') {
|
||||
const keys = Object.keys(value)
|
||||
if (keys[0] === '$like') {
|
||||
const pattern = value.$like as string
|
||||
|
Loading…
Reference in New Issue
Block a user