diff --git a/packages/backend/src/om/entitystorage/SQLES.js b/packages/backend/src/om/entitystorage/SQLES.js index 795eb6da..06db14b7 100644 --- a/packages/backend/src/om/entitystorage/SQLES.js +++ b/packages/backend/src/om/entitystorage/SQLES.js @@ -94,7 +94,7 @@ class SQLES extends BaseES { } const values = []; - if ( predicate ) values.push(...predicate.values); + if ( predicate ) values.push(...(predicate.values || [])); if ( this.debug ) { this.log.info('-> SQL STMT', { stmt, values });