diff --git a/src/modules/host/handlers/Activity_Hub/Scheduling/openCanceledSlot.ts b/src/modules/host/handlers/Activity_Hub/Scheduling/openCanceledSlot.ts index aa4fac2..2eaaa9e 100644 --- a/src/modules/host/handlers/Activity_Hub/Scheduling/openCanceledSlot.ts +++ b/src/modules/host/handlers/Activity_Hub/Scheduling/openCanceledSlot.ts @@ -44,7 +44,7 @@ export const handler = safeHandler( let body: { activityXid: number; venueXid: number; - cancellations: { cancellationXid: number; slotXid: number }[]; + cancellations: { cancellationXid: number; }[]; }; try { @@ -79,7 +79,6 @@ export const handler = safeHandler( await schedulingService.openCanceledSlot( body.cancellations.map((item: any) => ({ cancellationXid: Number(item.cancellationXid), - slotXid: Number(item.slotXid), })), ); diff --git a/src/modules/host/services/activityScheduling.service.ts b/src/modules/host/services/activityScheduling.service.ts index 01a1b21..82ace3c 100644 --- a/src/modules/host/services/activityScheduling.service.ts +++ b/src/modules/host/services/activityScheduling.service.ts @@ -726,7 +726,7 @@ export class SchedulingService { } async openCanceledSlot( - cancellations: { cancellationXid: number; slotXid: number }[], + cancellations: { cancellationXid: number; }[], ) { return await this.prisma.cancellations.updateMany({ where: {