ruifeng_liu %!s(int64=3) %!d(string=hai) anos
pai
achega
bfe28b75ca
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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;