Browse Source

fix: handle exception for metaDiff api

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/3573/head
mertmit 2 years ago
parent
commit
915c9abf56
  1. 4
      packages/nocodb/src/lib/meta/api/metaDiffApis.ts

4
packages/nocodb/src/lib/meta/api/metaDiffApis.ts

@ -541,9 +541,13 @@ export async function metaDiff(req, res) {
const project = await Project.getWithInfo(req.params.projectId);
let changes = []
for (const base of project.bases) {
try {
// @ts-ignore
const sqlClient = NcConnectionMgrv2.getSqlClient(base);
changes = changes.concat(await getMetaDiff(sqlClient, project, base));
} catch (e) {
console.log(e);
}
}
res.json(changes);

Loading…
Cancel
Save