ashok 4 months ago
commit ea034c1cfc

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

Loading…
Cancel
Save