removed the slotXid for opening the slot

This commit is contained in:
2026-02-26 19:01:59 +05:30
parent 0c9ff76fe4
commit 485bdee063
2 changed files with 2 additions and 3 deletions

View File

@@ -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),
})),
);

View File

@@ -726,7 +726,7 @@ export class SchedulingService {
}
async openCanceledSlot(
cancellations: { cancellationXid: number; slotXid: number }[],
cancellations: { cancellationXid: number; }[],
) {
return await this.prisma.cancellations.updateMany({
where: {