import AppError from "../../errors/AppError"; import SchedulingNotify from "../../models/SchedulingNotify"; interface Request { ticketId: string, scheduleId: string, schedulingDate: string, message: string } const CreateSchedulingNotifyService = async ( { ticketId, scheduleId, schedulingDate, message }: Request): Promise => { const schedulingNotify = await SchedulingNotify.create( { ticketId, scheduleId, schedulingDate, message }) return schedulingNotify } export default CreateSchedulingNotifyService