Browse Source

fix: Hasmany list api bug

re #348

Signed-off-by: Pranav C <61551451+pranavxc@users.noreply.github.com>
pull/350/head
Pranav C 3 years ago
parent
commit
9096619eba
  1. 2
      packages/nocodb/src/lib/noco/rest/RestCtrlHasMany.ts

2
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<void> {
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);
}

Loading…
Cancel
Save