Skip to content

Commit

Permalink
debug 6
Browse files Browse the repository at this point in the history
  • Loading branch information
Yury-Shevchenko committed Jan 29, 2024
1 parent 878a227 commit cd5f3ff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions controllers/jobController.js
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ exports.createIntervalNotification = async (req, res) => {
}

if (users) {
users.map(async (user) => {
await users.map(async (user) => {
await intervalWindows.map(async (window) => {
if (req.body.int_start.startEvent === "registration") {
if (req.body.int_start.startNextDay) {
Expand Down Expand Up @@ -687,8 +687,6 @@ exports.createIntervalNotification = async (req, res) => {
}
}

console.log("timezone", timezone);

agenda.schedule(int_start, "start_random_personal_manager", {
userid: [user.id],
projectid: req.user.project._id,
Expand Down Expand Up @@ -719,6 +717,8 @@ exports.createIntervalNotification = async (req, res) => {
timezone,
reminders: req.body.reminders,
});

console.log("scheduled for timezone", timezone);
});
});
}
Expand Down

0 comments on commit cd5f3ff

Please sign in to comment.