From 99672e749f05d1fae3b933d7b4bddb5ba8bbf186 Mon Sep 17 00:00:00 2001 From: Brendan Chen Date: Tue, 25 Mar 2025 15:48:42 -0700 Subject: [PATCH] use seconds threshold provided in argument inputs --- src/resolvers/MutationResolvers.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/resolvers/MutationResolvers.ts b/src/resolvers/MutationResolvers.ts index 90dd4c8..ac8e1ea 100644 --- a/src/resolvers/MutationResolvers.ts +++ b/src/resolvers/MutationResolvers.ts @@ -25,7 +25,9 @@ export const MutationResolvers: Resolvers = { const notificationData: NotificationSchedulingArguments = { ...args.input, - secondsThreshold: ETANotificationScheduler.defaultSecondsThresholdForNotificationToFire, + secondsThreshold: typeof args.input.secondsThreshold === 'number' + ? args.input.secondsThreshold + : ETANotificationScheduler.defaultSecondsThresholdForNotificationToFire, } await context.notificationService.scheduleNotification(notificationData);