master^2
Bhaskar 4 months ago
parent ce7799a45e
commit e828566d42

@ -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;

Loading…
Cancel
Save