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