From 47a099ebc43951ce5bd2392d0dc6f4b31dc7c078 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Fri, 9 Sep 2022 12:55:45 +0800 Subject: [PATCH] chore(nocodb): format & fix minor issues in KanbanView --- packages/nocodb/src/lib/models/KanbanView.ts | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/packages/nocodb/src/lib/models/KanbanView.ts b/packages/nocodb/src/lib/models/KanbanView.ts index 41fd1240af..4c5b1a55ba 100644 --- a/packages/nocodb/src/lib/models/KanbanView.ts +++ b/packages/nocodb/src/lib/models/KanbanView.ts @@ -3,9 +3,8 @@ import { KanbanType } from 'nocodb-sdk'; import { CacheGetType, CacheScope, MetaTable } from '../utils/globals'; import View from './View'; import NocoCache from '../cache/NocoCache'; -import { isLeafType } from 'graphql'; -export default class KanbanView implements KanbanType{ +export default class KanbanView implements KanbanType { fk_view_id: string; title: string; project_id?: string; @@ -15,7 +14,6 @@ export default class KanbanView implements KanbanType{ show: boolean; is_default: boolean; order: number; - constructor(data: KanbanView) { Object.assign(this, data); @@ -70,9 +68,10 @@ export default class KanbanView implements KanbanType{ // get existing cache const key = `${CacheScope.KANBAN_VIEW}:${kanbanId}`; let o = await NocoCache.get(key, CacheGetType.TYPE_OBJECT); + console.log(body); const updateObj = { - // TODO: - } + // TODO: + }; if (o) { o = { ...o, ...updateObj }; // set cache @@ -83,7 +82,7 @@ export default class KanbanView implements KanbanType{ null, null, MetaTable.KANBAN_VIEW, - ...updateObj, + updateObj, { fk_view_id: kanbanId, }