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')
|
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,
|
||||||
},
|
},
|
||||||
|
|||||||
2
src/Schedule/schedule.d.ts
vendored
2
src/Schedule/schedule.d.ts
vendored
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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,
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user