guoziyun 9 months ago
parent
commit
73605fbec0
1 changed files with 1 additions and 5 deletions
  1. 1 5
      oms/services/ingestor-service.ts

+ 1 - 5
oms/services/ingestor-service.ts

@@ -316,11 +316,7 @@ async function processMessage(msg: Message) {
     // --- 3. Prepare User Data for MongoDB Batch Update ---
     // userSetData will contain fields to be updated using $set for both new and existing documents.
     // 'project' is now excluded here as it will be handled by $setOnInsert only.
-    // const userSetData: Partial<IUser> = { lastActiveAt: lastActiveAtDateObj };
-    const userSetData: Partial<IUser> = {};
-    if (eventType !== "message_receive") {
-      userSetData.lastActiveAt = lastActiveAtDateObj;
-    }
+    const userSetData: Partial<IUser> = { lastActiveAt: lastActiveAtDateObj };
 
     // SetOnInsert fields will only apply when a new document is created
     const setOnInsertFields: any = {