remove console logs
This commit is contained in:
parent
fb89cba803
commit
c989c94532
|
@ -50,7 +50,6 @@ export default class AttendeeRequestRescheduledEmail extends OrganizerScheduledE
|
|||
|
||||
// @OVERRIDE
|
||||
protected getiCalEventAsString(): string | undefined {
|
||||
console.log("overriding");
|
||||
const icsEvent = createEvent({
|
||||
start: dayjs(this.calEvent.startTime)
|
||||
.utc()
|
||||
|
|
|
@ -56,7 +56,6 @@ export default class OrganizerRequestRescheduledEmail extends OrganizerScheduled
|
|||
|
||||
// @OVERRIDE
|
||||
protected getiCalEventAsString(): string | undefined {
|
||||
console.log("overriding");
|
||||
const icsEvent = createEvent({
|
||||
start: dayjs(this.calEvent.startTime)
|
||||
.utc()
|
||||
|
|
|
@ -23,7 +23,6 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
|
|||
}
|
||||
let result = false;
|
||||
try {
|
||||
console.log("try");
|
||||
const { initialDate, endDate } = req.body;
|
||||
|
||||
const todayBookings = await prisma.booking.findMany({
|
||||
|
@ -49,20 +48,18 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
|
|||
if (todayBookings.length > 0) {
|
||||
todayBookings.forEach((booking) =>
|
||||
q.push(() => {
|
||||
return Reschedule(booking.uid, "Can't do it");
|
||||
return Reschedule(booking.uid, "");
|
||||
})
|
||||
);
|
||||
}
|
||||
const result = await q.start();
|
||||
console.log({ result });
|
||||
// result = !!(await Reschedule(booking.uid, "Can't do it"));
|
||||
await q.start();
|
||||
} catch (error: unknown) {
|
||||
if (error instanceof Error) {
|
||||
return res.status(500).json({ message: error.message });
|
||||
}
|
||||
return res.status(500);
|
||||
}
|
||||
return res.status(200).json({ success: result });
|
||||
return res.status(200).json({ success: true });
|
||||
};
|
||||
|
||||
function validate(
|
||||
|
|
|
@ -49,7 +49,6 @@ export default class AttendeeRequestRescheduledEmail extends BaseTemplate {
|
|||
|
||||
// @OVERRIDE
|
||||
protected getiCalEventAsString(): string | undefined {
|
||||
console.log("overriding");
|
||||
const icsEvent = createEvent({
|
||||
start: dayjs(this.calEvent.startTime)
|
||||
.utc()
|
||||
|
|
|
@ -56,7 +56,6 @@ export default class OrganizerRequestRescheduledEmail extends BaseTemplate {
|
|||
|
||||
// @OVERRIDE
|
||||
protected getiCalEventAsString(): string | undefined {
|
||||
console.log("overriding");
|
||||
const icsEvent = createEvent({
|
||||
start: dayjs(this.calEvent.startTime)
|
||||
.utc()
|
||||
|
|
Loading…
Reference in New Issue
Block a user