|
|
@ -119,10 +119,17 @@ export default class KanbanViewColumn implements KanbanColumnType { |
|
|
|
body: Partial<KanbanViewColumn>, |
|
|
|
body: Partial<KanbanViewColumn>, |
|
|
|
ncMeta = Noco.ncMeta, |
|
|
|
ncMeta = Noco.ncMeta, |
|
|
|
) { |
|
|
|
) { |
|
|
|
const updateObj = extractProps(body, [ |
|
|
|
const updateObj = extractProps(body, ['order', 'show']); |
|
|
|
'order', |
|
|
|
|
|
|
|
'show' |
|
|
|
// set meta
|
|
|
|
]); |
|
|
|
const res = await ncMeta.metaUpdate( |
|
|
|
|
|
|
|
null, |
|
|
|
|
|
|
|
null, |
|
|
|
|
|
|
|
MetaTable.KANBAN_VIEW_COLUMNS, |
|
|
|
|
|
|
|
updateObj, |
|
|
|
|
|
|
|
columnId, |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
// get existing cache
|
|
|
|
// get existing cache
|
|
|
|
const key = `${CacheScope.KANBAN_VIEW_COLUMN}:${columnId}`; |
|
|
|
const key = `${CacheScope.KANBAN_VIEW_COLUMN}:${columnId}`; |
|
|
|
let o = await NocoCache.get(key, CacheGetType.TYPE_OBJECT); |
|
|
|
let o = await NocoCache.get(key, CacheGetType.TYPE_OBJECT); |
|
|
@ -132,14 +139,6 @@ export default class KanbanViewColumn implements KanbanColumnType { |
|
|
|
// set cache
|
|
|
|
// set cache
|
|
|
|
await NocoCache.set(key, o); |
|
|
|
await NocoCache.set(key, o); |
|
|
|
} |
|
|
|
} |
|
|
|
// set meta
|
|
|
|
|
|
|
|
const res = await ncMeta.metaUpdate( |
|
|
|
|
|
|
|
null, |
|
|
|
|
|
|
|
null, |
|
|
|
|
|
|
|
MetaTable.KANBAN_VIEW_COLUMNS, |
|
|
|
|
|
|
|
updateObj, |
|
|
|
|
|
|
|
columnId, |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// on view column update, delete any optimised single query cache
|
|
|
|
// on view column update, delete any optimised single query cache
|
|
|
|
{ |
|
|
|
{ |
|
|
|