fix method calls and tests

This commit is contained in:
2025-03-27 10:56:57 -07:00
parent a665c29745
commit ef94a9aa7e
4 changed files with 17 additions and 16 deletions

View File

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