Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
protected builderSetWhere(
builder: SelectQueryBuilder,
condition: SConditionKey,
field: string,
value: any,
operator: ComparisonOperator = '$eq',
) {
const time = process.hrtime();
const index = `${field}${time[0]}${time[1]}`;
const args = [
{ field, operator: isNull(value) ? '$isnull' : operator, value },
index,
builder,
];
const fn = condition === '$and' ? this.setAndWhere : this.setOrWhere;
fn.apply(this, args);
}