guoziyun il y a 9 mois
Parent
commit
0ba56788d4
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      oms/services/cron-jobs/notify/local-timezone-notify.ts

+ 2 - 2
oms/services/cron-jobs/notify/local-timezone-notify.ts

@@ -147,8 +147,8 @@ export async function run(): Promise<void> {
     const sevenDaysAgo = new Date(Date.now() - 7 * 24 * 60 * 60 * 1000);
 
     const activeUsers = await User.find({
-      // lastActiveAt: { $gte: sevenDaysAgo },
-      $or: [{ lastActiveAt: { $gte: sevenDaysAgo } }, { lastActiveAt: { $in: [null, "", undefined] } }],
+      lastActiveAt: { $gte: sevenDaysAgo },
+      // $or: [{ lastActiveAt: { $gte: sevenDaysAgo } }, { lastActiveAt: { $in: [null, "", undefined] } }],
       fmToken: { $nin: [null, ""] },
       versionCode: { $gte: 347 },
     })