Update ip-blacklist.service.ts

This commit is contained in:
Baobhan Sith
2025-04-24 16:44:29 +08:00
parent 53864cf00f
commit 2f0b872264
@@ -116,7 +116,7 @@ export class IpBlacklistService {
if (shouldNotify && blockedUntil) { if (shouldNotify && blockedUntil) {
// Trigger notification after successful DB update // Trigger notification after successful DB update
notificationService.sendNotification('IP_BLACKLISTED', { notificationService.sendNotification('IP_BLOCKED', {
ip: ip, ip: ip,
attempts: newAttempts, attempts: newAttempts,
duration: banDuration, duration: banDuration,
@@ -143,7 +143,7 @@ export class IpBlacklistService {
if (shouldNotify && blockedUntil) { if (shouldNotify && blockedUntil) {
// Trigger notification after successful DB insert // Trigger notification after successful DB insert
notificationService.sendNotification('IP_BLACKLISTED', { notificationService.sendNotification('IP_BLOCKED', {
ip: ip, ip: ip,
attempts: attempts, attempts: attempts,
duration: banDuration, duration: banDuration,