diff --git a/database/managers/employee_schedule.ts b/database/managers/employee_schedule.ts index 1fe08fca0..dffbbf235 100644 --- a/database/managers/employee_schedule.ts +++ b/database/managers/employee_schedule.ts @@ -146,6 +146,8 @@ export default class extends BaseManager< throw new DatabaseError("Developer may have forgot to register the models.") } + console.log(JSON.stringify({ targetTimes }), "\n\n\n\n\n") + const futureConsultations = await Consultation.findAll({ "include": [ { @@ -169,6 +171,7 @@ export default class extends BaseManager< const hours = scheduledStartAt.getHours() const minutes = scheduledStartAt.getMinutes() for (const [ userID, targetDay, targetStartTime, targetEndTime ] of targetTimes) { + console.log(targetTimes, { day, hours, minutes }, "\n\n\n\n") if ( consultantInfo?.userID === userID && targetDay === day