lrf402788946 4 years ago
parent
commit
0a55f70903
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/service/users/person_room.js

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

@@ -14,7 +14,7 @@ class Person_roomService extends CrudService {
   async query(query) {
     query = this.ctx.service.util.util.turnDateRangeQuery(this.ctx.service.util.util.turnFilter(query));
     const { p_id, skip = 0, limit = 0 } = query;
-    const condition = { last_time: { $exists: true }, ...query };
+    const condition = { ...query }; // last_time: { $exists: true },
     if (p_id) {
       condition.$or = [{ p1_id: ObjectId(p_id) }, { p2_id: ObjectId(p_id) }];
       delete condition.p_id;