From 4614ebe17b47ee46fadf949d19121358e9b2a688 Mon Sep 17 00:00:00 2001 From: Glenn Latomme Date: Mon, 12 Aug 2024 10:46:29 +0200 Subject: [PATCH] fix: faster mailing --- .../notifiers/encounterChange/confirmationRequest.notfier.ts | 2 +- .../src/notifiers/encounterChange/finishedRequest.ts | 2 +- .../src/notifiers/encounterChange/newRequest.notfier.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/backend/notifications/src/notifiers/encounterChange/confirmationRequest.notfier.ts b/libs/backend/notifications/src/notifiers/encounterChange/confirmationRequest.notfier.ts index 848cdff8d3..372739d3c4 100644 --- a/libs/backend/notifications/src/notifiers/encounterChange/confirmationRequest.notfier.ts +++ b/libs/backend/notifications/src/notifiers/encounterChange/confirmationRequest.notfier.ts @@ -8,7 +8,7 @@ export class CompetitionEncounterChangeConfirmationRequestNotifier extends Notif }> { protected linkType = 'encounterCompetition'; protected type: keyof NotificationOptionsTypes = 'encounterChangeConfirmationNotification'; - protected override allowedInterval: unitOfTime.Diff = 'minute'; + protected override allowedInterval: unitOfTime.Diff = 'second'; private readonly options = (encounter: EncounterCompetition) => { return { diff --git a/libs/backend/notifications/src/notifiers/encounterChange/finishedRequest.ts b/libs/backend/notifications/src/notifiers/encounterChange/finishedRequest.ts index c5f99397c0..758fde4a34 100644 --- a/libs/backend/notifications/src/notifiers/encounterChange/finishedRequest.ts +++ b/libs/backend/notifications/src/notifiers/encounterChange/finishedRequest.ts @@ -14,7 +14,7 @@ export class CompetitionEncounterChangeFinishRequestNotifier extends Notifier<{ }> { protected linkType = 'encounterCompetition'; protected type: keyof NotificationOptionsTypes = 'encounterChangeFinishedNotification'; - protected override allowedInterval: unitOfTime.Diff = 'minute'; + protected override allowedInterval: unitOfTime.Diff = 'second'; private readonly options = (encounter: EncounterCompetition) => { return { diff --git a/libs/backend/notifications/src/notifiers/encounterChange/newRequest.notfier.ts b/libs/backend/notifications/src/notifiers/encounterChange/newRequest.notfier.ts index f005758660..3c818c70e0 100644 --- a/libs/backend/notifications/src/notifiers/encounterChange/newRequest.notfier.ts +++ b/libs/backend/notifications/src/notifiers/encounterChange/newRequest.notfier.ts @@ -9,7 +9,7 @@ export class CompetitionEncounterChangeNewRequestNotifier extends Notifier<{ }> { protected linkType = 'encounterCompetition'; protected type: keyof NotificationOptionsTypes = 'encounterChangeNewNotification'; - protected override allowedInterval: unitOfTime.Diff = 'hour'; + protected override allowedInterval: unitOfTime.Diff = 'second'; private readonly options = (encounter: EncounterCompetition) => { return {