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);