Browse Source

fix(nocodb): add missing ncMeta

pull/5106/head
Wing-Kam Wong 2 years ago
parent
commit
6b7436d37c
  1. 2
      packages/nocodb/src/lib/models/Filter.ts
  2. 10
      packages/nocodb/src/lib/version-upgrader/ncFilterUpgrader_0104004.ts

2
packages/nocodb/src/lib/models/Filter.ts

@ -241,7 +241,7 @@ export default class Filter {
} }
static async delete(id: string, ncMeta = Noco.ncMeta) { static async delete(id: string, ncMeta = Noco.ncMeta) {
const filter = await this.get(id); const filter = await this.get(id, ncMeta);
const deleteRecursively = async (filter: Filter) => { const deleteRecursively = async (filter: Filter) => {
if (!filter) return; if (!filter) return;

10
packages/nocodb/src/lib/version-upgrader/ncFilterUpgrader_0104004.ts

@ -330,9 +330,13 @@ async function updateProjectMeta(ncMeta: NcMetaIO) {
}; };
actions.push( actions.push(
await Project.update(project.id, { await Project.update(
meta: JSON.stringify(newProjectMeta), project.id,
}) {
meta: JSON.stringify(newProjectMeta),
},
ncMeta
)
); );
} }
await Promise.all(actions); await Promise.all(actions);

Loading…
Cancel
Save