use seconds threshold provided in argument inputs

This commit is contained in:
2025-03-25 15:48:42 -07:00
parent 96e7e0297b
commit 99672e749f

View File

@@ -25,7 +25,9 @@ export const MutationResolvers: Resolvers<ServerContext> = {
const notificationData: NotificationSchedulingArguments = {
...args.input,
secondsThreshold: ETANotificationScheduler.defaultSecondsThresholdForNotificationToFire,
secondsThreshold: typeof args.input.secondsThreshold === 'number'
? args.input.secondsThreshold
: ETANotificationScheduler.defaultSecondsThresholdForNotificationToFire,
}
await context.notificationService.scheduleNotification(notificationData);