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. 8
      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) {
const filter = await this.get(id);
const filter = await this.get(id, ncMeta);
const deleteRecursively = async (filter: Filter) => {
if (!filter) return;

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

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

Loading…
Cancel
Save