|
@@ -397,7 +397,7 @@ class IndexService extends CrudService {
|
|
|
const access = await paccess.count({ status: [ '0', '1', '-1', '2' ], user_id: id });
|
|
|
// 专利信息
|
|
|
const patentInfo = this.ctx.model.Patent.Patentinfo;
|
|
|
- const information = await patentInfo.count({ inventor: { $elemMatch: { $in: [ ObjectId(id) ] } } });
|
|
|
+ const information = await patentInfo.count({ user_id: { $elemMatch: { $in: [ ObjectId(id) ] } } });
|
|
|
// 专利维权
|
|
|
const patentsafeg = this.ctx.model.Patent.Patentsafeg;
|
|
|
const safeg = await patentsafeg.count({ status: [ '0', '1', '2' ], user_id: id });
|