Skip to content

Commit

Permalink
more debug
Browse files Browse the repository at this point in the history
  • Loading branch information
bloodcloak committed Jun 9, 2024
1 parent 9c9eb45 commit 543f64d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions events/onReady.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,9 @@ module.exports = {
.where("status", "open")
.andWhere("close_requested_at", "!=", null);

const ticketArray = Array.from(tickets);
console.log(`Pending Close Check\n===\n${tickets}\n===`)

console.log(`Pending Close Check\n===\n${tickets}\n===\n${ticketArray}`)

ticketArray.forEach(async ticket => {
tickets.forEach(async ticket => {
const closeRequestedAt = new Date(ticket.close_requested_at);
const timeout = ticket.timeout * 24 * 60 * 60 * 1000;

Expand Down Expand Up @@ -61,6 +59,6 @@ module.exports = {
}, 5000);
}
})
}, 1000 * 60 * 60);
}, 1000 * 60 * 2);
},
};

0 comments on commit 543f64d

Please sign in to comment.