Update ip-blacklist.service.ts
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user