|
@@ -384,7 +384,7 @@ class IndexService extends CrudService {
|
|
|
const unread = await patentExamine.count({ to: id, is_read: false });
|
|
|
// 通知信息
|
|
|
const patentNotice = this.ctx.model.Patent.Patentnotice;
|
|
|
- const notice = await patentNotice.count({ to_id: { $elemMatch: { to_id: id } }, is_read: false });
|
|
|
+ const notice = await patentNotice.count({ to_id: { $elemMatch: { $in: [ ObjectId(id) ] } }, is_read: false });
|
|
|
// 专利申请
|
|
|
const papply = this.ctx.model.Patent.Patentapply;
|
|
|
const apply = await papply.count({
|