removed the slotXid for opening the slot
This commit is contained in:
@@ -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),
|
||||
})),
|
||||
);
|
||||
|
||||
|
||||
@@ -726,7 +726,7 @@ export class SchedulingService {
|
||||
}
|
||||
|
||||
async openCanceledSlot(
|
||||
cancellations: { cancellationXid: number; slotXid: number }[],
|
||||
cancellations: { cancellationXid: number; }[],
|
||||
) {
|
||||
return await this.prisma.cancellations.updateMany({
|
||||
where: {
|
||||
|
||||
Reference in New Issue
Block a user