|
|
@ -132,13 +132,7 @@ export default class KanbanViewColumn implements KanbanColumnType { |
|
|
|
|
|
|
|
|
|
|
|
// 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); |
|
|
|
await NocoCache.update(key, updateObj); |
|
|
|
if (o) { |
|
|
|
|
|
|
|
// update data
|
|
|
|
|
|
|
|
o = { ...o, ...updateObj }; |
|
|
|
|
|
|
|
// set cache
|
|
|
|
|
|
|
|
await NocoCache.set(key, o); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// on view column update, delete any optimised single query cache
|
|
|
|
// on view column update, delete any optimised single query cache
|
|
|
|
{ |
|
|
|
{ |
|
|
|