Browse Source

refactor(nocodb): view update function type

pull/5269/head
Wing-Kam Wong 2 years ago
parent
commit
30fefe12ab
  1. 9
      packages/nocodb/src/lib/models/View.ts

9
packages/nocodb/src/lib/models/View.ts

@ -652,11 +652,10 @@ export default class View implements ViewType {
colId: string,
colData: {
order?: number;
show?: boolean;
show?: BoolType;
},
ncMeta = Noco.ncMeta
): Promise<Array<GridViewColumn | any>> {
const columns: Array<GridViewColumn | any> = [];
) {
const view = await this.get(viewId, ncMeta);
let table;
let cacheScope;
@ -722,9 +721,7 @@ export default class View implements ViewType {
await NocoCache.set(key, o);
}
// set meta
await ncMeta.metaUpdate(null, null, table, updateObj, colId);
return columns;
return await ncMeta.metaUpdate(null, null, table, updateObj, colId);
}
static async insertOrUpdateColumn(

Loading…
Cancel
Save