From 460a961407f86e0fc9e6aef1d519167b37e70c28 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Tue, 13 Sep 2022 13:37:35 +0800 Subject: [PATCH] feat(nocodb): add stack_meta in KanbanView update --- packages/nocodb/src/lib/models/KanbanView.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/nocodb/src/lib/models/KanbanView.ts b/packages/nocodb/src/lib/models/KanbanView.ts index 1594fb0ec0..7752b9d363 100644 --- a/packages/nocodb/src/lib/models/KanbanView.ts +++ b/packages/nocodb/src/lib/models/KanbanView.ts @@ -10,6 +10,7 @@ export default class KanbanView implements KanbanType { project_id?: string; base_id?: string; grp_column_id?: string; + stack_meta?: string | object; // TODO: check these show: boolean; @@ -70,7 +71,11 @@ export default class KanbanView implements KanbanType { const key = `${CacheScope.KANBAN_VIEW}:${kanbanId}`; let o = await NocoCache.get(key, CacheGetType.TYPE_OBJECT); const updateObj = { - grp_column_id: body.grp_column_id, + ...body, + stack_meta: + typeof body.stack_meta === 'string' + ? body.stack_meta + : JSON.stringify(body.stack_meta), }; if (o) { o = { ...o, ...updateObj };