lrf402788946 %!s(int64=4) %!d(string=hai) anos
pai
achega
aff1b85a78
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/service/school.js

+ 1 - 1
app/service/school.js

@@ -145,7 +145,7 @@ class SchoolService extends CrudService {
       console.error(rt);
       let ar = arrange[key];
       ar = ar.map(a => {
-        const rb = rt.batchnum.find(f => f.batchid === a.batchid);
+        const rb = rt.batchnum.find(f => f._id === a.batchid);
         if (rb) {
           const bh = _.head(rb.class);
           const { type } = bh;