|
|
@ -4254,7 +4254,7 @@ cron.schedule("*/1 * * * *", async () => {
|
|
|
|
console.log("🔁 Running auto-disconnect ticket check...");
|
|
|
|
console.log("🔁 Running auto-disconnect ticket check...");
|
|
|
|
|
|
|
|
|
|
|
|
// Step 1: Get all support profiles
|
|
|
|
// Step 1: Get all support profiles
|
|
|
|
const allSupportProfiles = await Support.find({}).lean();
|
|
|
|
const allSupportProfiles = await Support.find({});
|
|
|
|
|
|
|
|
|
|
|
|
for (const supportRecord of allSupportProfiles) {
|
|
|
|
for (const supportRecord of allSupportProfiles) {
|
|
|
|
const supportId = supportRecord.supportId;
|
|
|
|
const supportId = supportRecord.supportId;
|
|
|
|