Avoid predicate.values not iterable error

This commit is contained in:
KernelDeimos 2024-04-04 14:20:30 -04:00
parent 809e33b053
commit 2125367683

View File

@ -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 });