From 30fefe12ab72cc687e519aa99f7d6b8fdf205bde Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Mon, 13 Mar 2023 17:02:15 +0800 Subject: [PATCH] refactor(nocodb): view update function type --- packages/nocodb/src/lib/models/View.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/packages/nocodb/src/lib/models/View.ts b/packages/nocodb/src/lib/models/View.ts index 02ef478155..2e7f9374f1 100644 --- a/packages/nocodb/src/lib/models/View.ts +++ b/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> { - const columns: Array = []; + ) { 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(