Browse Source

refactor(nocodb): return metaUpdate

pull/5269/head
Wing-Kam Wong 2 years ago
parent
commit
4c83f0b390
  1. 2
      packages/nocodb/src/lib/models/Filter.ts
  2. 2
      packages/nocodb/src/lib/models/Sort.ts

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

@ -272,7 +272,7 @@ export default class Filter implements FilterType {
await NocoCache.set(key, o);
}
// set meta
await ncMeta.metaUpdate(null, null, MetaTable.FILTER_EXP, updateObj, id);
return await ncMeta.metaUpdate(null, null, MetaTable.FILTER_EXP, updateObj, id);
}
static async delete(id: string, ncMeta = Noco.ncMeta) {

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

@ -144,7 +144,7 @@ export default class Sort {
await NocoCache.set(key, o);
}
// set meta
await ncMeta.metaUpdate(
return await ncMeta.metaUpdate(
null,
null,
MetaTable.SORT,

Loading…
Cancel
Save