|
@@ -395,9 +395,9 @@ class IndexService extends CrudService {
|
|
|
|
|
|
|
|
|
const patentInfo = this.ctx.model.Patent.Patentinfo;
|
|
|
- const information = await patentInfo.count({ user_id: [ ObjectId(id) ] });
|
|
|
+ const information = await patentInfo.count({ user_id: { $elemMatch: { $in: [ ObjectId(id) ] } } });
|
|
|
const patentEarly = this.ctx.model.Patent.Patentearly;
|
|
|
- const early = await patentEarly.count({ user_id: [ ObjectId(id) ] });
|
|
|
+ const early = await patentEarly.count({ user_id: { $elemMatch: { $in: [ ObjectId(id) ] } } });
|
|
|
|
|
|
|
|
|
const patentTrans = this.ctx.model.Patent.Patenttrans;
|