lrf402788946 4 年之前
父節點
當前提交
b08480e74e
共有 1 個文件被更改,包括 6 次插入6 次删除
  1. 6 6
      app/service/users/person_room.js

+ 6 - 6
app/service/users/person_room.js

@@ -24,12 +24,12 @@ class Person_roomService extends CrudService {
     console.log(data.map(i => ObjectId(i.id || i._id)));
     const aggQuery = [
       { $match: { room_id: data.map(i => ObjectId(i.id || i._id)), is_read: false, receiver_id: ObjectId(p_id) } },
-      {
-        $group: {
-          _id: '$room_id',
-          sum: { $sum: 1 },
-        },
-      },
+      // {
+      //   $group: {
+      //     _id: '$room_id',
+      //     sum: { $sum: 1 },
+      //   },
+      // },
     ];
     console.log(aggQuery);
     const r = await this.pc.aggregate(aggQuery);