From 9096619ebab5f2f2a1c106cfe8dd19d0891226a3 Mon Sep 17 00:00:00 2001 From: Pranav C <61551451+pranavxc@users.noreply.github.com> Date: Thu, 15 Jul 2021 18:42:07 +0530 Subject: [PATCH] fix: Hasmany list api bug re #348 Signed-off-by: Pranav C <61551451+pranavxc@users.noreply.github.com> --- packages/nocodb/src/lib/noco/rest/RestCtrlHasMany.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nocodb/src/lib/noco/rest/RestCtrlHasMany.ts b/packages/nocodb/src/lib/noco/rest/RestCtrlHasMany.ts index c9b21e9f9f..8f798688db 100644 --- a/packages/nocodb/src/lib/noco/rest/RestCtrlHasMany.ts +++ b/packages/nocodb/src/lib/noco/rest/RestCtrlHasMany.ts @@ -124,7 +124,7 @@ export class RestCtrlHasMany extends RestBaseCtrl { public async hasManyList(req: Request | any, res): Promise { const data = await req.parentModel.hasManyList({ ...req.query, - childs: req.params.childs // req.childModel.tn + childs: this.childTable // req.childModel.tn } as any); res.xcJson(data); }