mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 07:50:31 +00:00
extract notification repository to interface
This commit is contained in:
@@ -2,8 +2,8 @@ import { NotificationResponse, Resolvers } from "../generated/graphql";
|
||||
import { ServerContext } from "../ServerContext";
|
||||
import {
|
||||
ETANotificationScheduler,
|
||||
ScheduledNotification
|
||||
} from "../notifications/schedulers/ETANotificationScheduler";
|
||||
import { ScheduledNotification } from "../repositories/NotificationRepository";
|
||||
|
||||
export const MutationResolvers: Resolvers<ServerContext> = {
|
||||
Mutation: {
|
||||
@@ -23,7 +23,7 @@ export const MutationResolvers: Resolvers<ServerContext> = {
|
||||
}
|
||||
}
|
||||
|
||||
const notificationData: NotificationSchedulingArguments = {
|
||||
const notificationData: ScheduledNotification = {
|
||||
...args.input,
|
||||
secondsThreshold: typeof args.input.secondsThreshold === 'number'
|
||||
? args.input.secondsThreshold
|
||||
|
||||
Reference in New Issue
Block a user