notification messages, dev fee

This commit is contained in:
Ben
2023-07-09 20:15:37 -04:00
parent 9083501e6f
commit e9ae1853af
6 changed files with 20 additions and 18 deletions
+4 -3
View File
@@ -1,4 +1,5 @@
import { Injectable, OnModuleInit } from '@nestjs/common';
import { Block } from 'bitcoinjs-lib';
import { DiscordService } from './discord.service';
import { TelegramService } from './telegram.service';
@@ -16,8 +17,8 @@ export class NotificationService implements OnModuleInit {
}
public async notifySubscribersBlockFound(address: string, message: string) {
await this.discordService.notifySUbscribersBlockFound(message);
await this.telegramService.notifySubscribersBlockFound(address, message);
public async notifySubscribersBlockFound(address: string, height: number, block: Block, message: string) {
await this.discordService.notifySubscribersBlockFound(height, block, message);
await this.telegramService.notifySubscribersBlockFound(address, height, block, message);
}
}