update scheduleDate props
This commit is contained in:
@@ -83,7 +83,7 @@ export class CollaborationSessionSchema extends PothosSchema {
|
||||
if (!scheduleDate) throw new Error('Schedule date not found')
|
||||
let collaborationSession: CollaborationSession | null = null
|
||||
collaborationSession =
|
||||
await this.prisma.collaborationSession.findUniqueOrThrow({
|
||||
await this.prisma.collaborationSession.findUnique({
|
||||
where: {
|
||||
scheduleDateId: scheduleDate.id,
|
||||
},
|
||||
|
||||
2
src/Schedule/schedule.d.ts
vendored
2
src/Schedule/schedule.d.ts
vendored
@@ -5,7 +5,7 @@ export interface ScheduleDateInput {
|
||||
dayOfWeek: number
|
||||
slot: number
|
||||
serviceId: string
|
||||
participants: string[]
|
||||
participantIds: string[]
|
||||
orderId: string | null
|
||||
}
|
||||
|
||||
|
||||
@@ -96,7 +96,7 @@ export class ScheduleService {
|
||||
end: endTime.toISO() ?? '',
|
||||
dayOfWeek: date.weekday,
|
||||
slot: slot,
|
||||
participants: [],
|
||||
participantIds: [],
|
||||
serviceId: schedule.managedServiceId,
|
||||
orderId: schedule.orderId,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user