|
@@ -19,6 +19,7 @@ class Person_roomService extends CrudService {
|
|
|
condition.$or = [{ p1_id: ObjectId(p_id) }, { p2_id: ObjectId(p_id) }];
|
|
|
delete condition.p_id;
|
|
|
}
|
|
|
+ console.log(condition);
|
|
|
const data = await this.model.find(condition).skip(parseInt(skip)).limit(parseInt(limit));
|
|
|
const total = await this.model.count(condition);
|
|
|
return { data, total };
|