Browse Source

fix: corrections

pull/7459/head
Pranav C 10 months ago
parent
commit
906f5841f4
  1. 2
      packages/nocodb/src/models/Column.ts
  2. 2
      packages/nocodb/src/models/Model.ts
  3. 2
      packages/nocodb/src/models/View.ts

2
packages/nocodb/src/models/Column.ts

@ -196,7 +196,7 @@ export default class Column<T = any> implements ColumnType {
ncMeta, ncMeta,
); );
await View.clearSingleQueryCache(view.fk_model_id, []); await View.clearSingleQueryCache(column.fk_model_id, []);
if (column.view_id) { if (column.view_id) {
const viewColId = await View.getViewColumnId( const viewColId = await View.getViewColumnId(

2
packages/nocodb/src/models/Model.ts

@ -658,7 +658,7 @@ export default class Model implements TableType {
); );
// clear all the cached query under this model // clear all the cached query under this model
await View.clearSingleQueryCache(view.fk_model_id, []); await View.clearSingleQueryCache(tableId, []);
// clear all the cached query under related models // clear all the cached query under related models
for (const col of await this.get(tableId).then((t) => t.getColumns())) { for (const col of await this.get(tableId).then((t) => t.getColumns())) {

2
packages/nocodb/src/models/View.ts

@ -1503,7 +1503,7 @@ export default class View implements ViewType {
await NocoCache.setList(CacheScope.GRID_VIEW_COLUMN, [viewId], views); await NocoCache.setList(CacheScope.GRID_VIEW_COLUMN, [viewId], views);
} }
public static clearSingleQueryCache( public static async clearSingleQueryCache(
modelId: string, modelId: string,
views?: { id?: string }[], views?: { id?: string }[],
ncMeta = Noco.ncMeta, ncMeta = Noco.ncMeta,

Loading…
Cancel
Save