|
|
|
@ -76,11 +76,19 @@ export default class FormViewColumn implements FormColumnType {
|
|
|
|
|
|
|
|
|
|
await NocoCache.set(`${CacheScope.FORM_VIEW_COLUMN}:${fk_column_id}`, id); |
|
|
|
|
|
|
|
|
|
await NocoCache.appendToList( |
|
|
|
|
CacheScope.FORM_VIEW_COLUMN, |
|
|
|
|
[column.fk_view_id], |
|
|
|
|
`${CacheScope.FORM_VIEW_COLUMN}:${id}` |
|
|
|
|
); |
|
|
|
|
// if cache is not present skip pushing it into the list to avoid unexpected behaviour
|
|
|
|
|
if ( |
|
|
|
|
( |
|
|
|
|
await NocoCache.getList(CacheScope.FORM_VIEW_COLUMN, [ |
|
|
|
|
column.fk_view_id, |
|
|
|
|
]) |
|
|
|
|
)?.length |
|
|
|
|
) |
|
|
|
|
await NocoCache.appendToList( |
|
|
|
|
CacheScope.FORM_VIEW_COLUMN, |
|
|
|
|
[column.fk_view_id], |
|
|
|
|
`${CacheScope.FORM_VIEW_COLUMN}:${id}` |
|
|
|
|
); |
|
|
|
|
return this.get(id, ncMeta); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|