Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Commit

Permalink
chore(consultation): log the targets temporarily
Browse files Browse the repository at this point in the history
  • Loading branch information
KennethTrecy committed Sep 12, 2022
1 parent 5da6ab5 commit b39f807
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions database/managers/employee_schedule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
{
Expand All @@ -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
Expand Down

0 comments on commit b39f807

Please sign in to comment.