lrf402788946 4 vuotta sitten
vanhempi
commit
02dbce35bf
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      app/controller/patientemrs.js

+ 1 - 1
app/controller/patientemrs.js

@@ -26,7 +26,7 @@ class PatientEmrsController extends Controller {
   // GET /{id}
   async fetch() {
     const { patientid, emrid } = this.ctx.params;
-    const res = await this.service.fetchEmr({ id: patientid, emrid });
+    const res = await this.service.fetchEmr({ patientid, emrid });
     this.ctx.ok({ data: res });
   }