Skip to content

Commit

Permalink
fix: fix alert
Browse files Browse the repository at this point in the history
  • Loading branch information
liorzblrn committed Dec 17, 2024
1 parent fac0d4b commit 5e041a9
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import {
GetTransactionsDto,
} from '@/transaction/dtos/get-transactions.dto';
import { TransactionCreatedDto } from '@/transaction/dtos/transaction-created.dto';
import { PaymentMethod } from '@prisma/client';
import { MonitoringType, PaymentMethod } from '@prisma/client';
import { isEmpty } from 'lodash';
import { TransactionEntityMapper } from './transaction.mapper';
import { DataInvestigationService } from '@/data-analytics/data-investigation.service';
Expand Down Expand Up @@ -339,7 +339,11 @@ export class TransactionControllerExternal {
@Query() filters: GetTransactionsByAlertDto,
@CurrentProject() projectId: types.TProjectId,
) {
const alert = await this.alertService.getAlertWithDefinition(filters.alertId, projectId);
const alert = await this.alertService.getAlertWithDefinition(
filters.alertId,
projectId,
MonitoringType.transaction_monitoring,
);

if (!alert) {
throw new errors.NotFoundException(`Alert with id ${filters.alertId} not found`);
Expand Down

0 comments on commit 5e041a9

Please sign in to comment.