update server context to only include the notification repository

This commit is contained in:
2025-03-27 10:42:43 -07:00
parent bda46d6808
commit 3761f43909
7 changed files with 32 additions and 22 deletions

View File

@@ -18,11 +18,11 @@ export const QueryResolvers: Resolvers<ServerContext> = {
},
isNotificationScheduled: async (_parent, args, contextValue, _info) => {
const notificationData = args.input;
return contextValue.notificationService.isNotificationScheduled(notificationData);
return contextValue.notificationRepository.isNotificationScheduled(notificationData);
},
secondsThresholdForNotification: async (_parent, args, contextValue, _info) => {
const notificationData = args.input;
return contextValue.notificationService.getSecondsThresholdForScheduledNotification(notificationData);
return contextValue.notificationRepository.getSecondsThresholdForScheduledNotification(notificationData);
},
},
}