Skip to content

Commit

Permalink
update field names in bigquerybuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeh committed Mar 18, 2024
1 parent 7d55245 commit 2ce91ee
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export class BigQueryAlertsQueryBuilder {
);
}
if (this.dto?.alertConfidence) {
this.queryBuilder.andWhere('alertConfidence = :alertConfidence', {
this.queryBuilder.andWhere('alert_confidence = :alertConfidence', {
alertConfidence: this.dto.alertConfidence,
});
}
Expand Down Expand Up @@ -125,7 +125,7 @@ export class BigQueryAlertsQueryBuilder {

addAlertDateRange(): void {
this.queryBuilder.andWhere(
'DATE(alertdate) BETWEEN DATE(:startAlertDate) AND DATE(:endAlertDate)',
'DATE(alert_date) BETWEEN DATE(:startAlertDate) AND DATE(:endAlertDate)',
{
startAlertDate: this.dto?.startAlertDate,
endAlertDate: this.dto?.endAlertDate,
Expand All @@ -134,13 +134,13 @@ export class BigQueryAlertsQueryBuilder {
}

addAlertDateGreaterThanOrEqual(): void {
this.queryBuilder.andWhere('DATE(alertdate) >= DATE(:startAlertDate)', {
this.queryBuilder.andWhere('DATE(alert_date) >= DATE(:startAlertDate)', {
startAlertDate: this.dto?.startAlertDate,
});
}

addAlertDateLessThanOrEqual(): void {
this.queryBuilder.andWhere('DATE(alertDate) <= :DATE(endAlertDate)', {
this.queryBuilder.andWhere('DATE(alert_date) <= :DATE(endAlertDate)', {
endAlertDate: this.dto?.endAlertDate,
});
}
Expand Down

0 comments on commit 2ce91ee

Please sign in to comment.