ruifeng_liu 3 лет назад
Родитель
Сommit
bfe28b75ca
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      app/service/statistics/index.js

+ 2 - 2
app/service/statistics/index.js

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