@@ -16,7 +16,7 @@ class Person_roomService extends CrudService {
const { p_id, skip = 0, limit = 0, ...info } = query;
const condition = { ...info }; // last_time: { $exists: true },
if (p_id) {
- condition.$or = [{ p1_id: ObjectId(p_id) }, { p2_id: ObjectId(p_id) }];
+ condition.$or = [{ p1_id: p_id }, { p2_id: p_id }];
delete condition.p_id;
}
console.log(condition);