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

Loading…
Cancel
Save