update scheduleDate props

This commit is contained in:
2024-11-25 15:02:56 +07:00
parent 0f7bb3367e
commit 6d509a4487
3 changed files with 3 additions and 3 deletions

View File

@@ -83,7 +83,7 @@ export class CollaborationSessionSchema extends PothosSchema {
if (!scheduleDate) throw new Error('Schedule date not found') if (!scheduleDate) throw new Error('Schedule date not found')
let collaborationSession: CollaborationSession | null = null let collaborationSession: CollaborationSession | null = null
collaborationSession = collaborationSession =
await this.prisma.collaborationSession.findUniqueOrThrow({ await this.prisma.collaborationSession.findUnique({
where: { where: {
scheduleDateId: scheduleDate.id, scheduleDateId: scheduleDate.id,
}, },

View File

@@ -5,7 +5,7 @@ export interface ScheduleDateInput {
dayOfWeek: number dayOfWeek: number
slot: number slot: number
serviceId: string serviceId: string
participants: string[] participantIds: string[]
orderId: string | null orderId: string | null
} }

View File

@@ -96,7 +96,7 @@ export class ScheduleService {
end: endTime.toISO() ?? '', end: endTime.toISO() ?? '',
dayOfWeek: date.weekday, dayOfWeek: date.weekday,
slot: slot, slot: slot,
participants: [], participantIds: [],
serviceId: schedule.managedServiceId, serviceId: schedule.managedServiceId,
orderId: schedule.orderId, orderId: schedule.orderId,
}) })