Skip to content

Commit

Permalink
CRYP-50 Support counting address and webhook for every monitor
Browse files Browse the repository at this point in the history
  • Loading branch information
thongnguyen5 authored and thongnguyendev committed Apr 23, 2024
1 parent fdcad79 commit d77e8b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/apps/monitor-service/src/ethereum/ethereum.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ export class EthereumService {
);
await Promise.all([
this.projectQuotaService.increaseUsed(monitor.projectId),
this.monitorWebhookService.increaseWebhookCount(monitor.webhookId),
this.monitorWebhookService.increaseWebhookCount(monitor.monitorId),
]);
return respone;
} catch (error) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Injectable, Logger } from '@nestjs/common';
import NodeCache from 'node-cache';
import { MonitorRepository } from '../repositories/monitor.repository';
import NodeCache = require('node-cache');

@Injectable()
export class MonitorWebhookService {
Expand Down

0 comments on commit d77e8b4

Please sign in to comment.