Browse Source

fix: pass correct project id to get model list

get models from current project to populate swagger json for current project

re #1899

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/1901/head
Pranav C 3 years ago
parent
commit
c5e273335e
  1. 2
      packages/nocodb/src/lib/noco/meta/api/swagger/swaggerApis.ts

2
packages/nocodb/src/lib/noco/meta/api/swagger/swaggerApis.ts

@ -13,7 +13,7 @@ async function swaggerJson(req, res) {
if (!project) NcError.notFound();
const models = await Model.list({
project_id: req.params.project_id,
project_id: req.params.projectId,
base_id: null
});

Loading…
Cancel
Save