Browse Source

fix: get project using `ncMeta.metaGet2` method

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/4961/head
Pranav C 2 years ago
parent
commit
9b8c11c66d
  1. 6
      packages/nocodb/src/lib/version-upgrader/ncAttachmentUpgrader.ts

6
packages/nocodb/src/lib/version-upgrader/ncAttachmentUpgrader.ts

@ -47,7 +47,11 @@ export default async function ({ ncMeta }: NcUpgraderCtx) {
for (const _base of bases) {
const base = new Base(_base);
const isProjectDeleted = (await base.getProject(ncMeta)).deleted;
const isProjectDeleted = (
await ncMeta.metaGet2(null, null, MetaTable.PROJECT, {
id: base.project_id,
})
).deleted;
const knex: Knex = base.is_meta
? ncMeta.knexConnection

Loading…
Cancel
Save