|
|
|
@ -675,7 +675,7 @@ export default class Model implements TableType {
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
// clear all the cached query under this model
|
|
|
|
|
await View.clearSingleQueryCache(tableId, []); |
|
|
|
|
await View.clearSingleQueryCache(tableId); |
|
|
|
|
|
|
|
|
|
// clear all the cached query under related models
|
|
|
|
|
for (const col of await this.get(tableId).then((t) => t.getColumns())) { |
|
|
|
@ -685,7 +685,7 @@ export default class Model implements TableType {
|
|
|
|
|
|
|
|
|
|
if (colOptions.fk_related_model_id === tableId) continue; |
|
|
|
|
|
|
|
|
|
await View.clearSingleQueryCache(colOptions.fk_related_model_id, []); |
|
|
|
|
await View.clearSingleQueryCache(colOptions.fk_related_model_id); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return res; |
|
|
|
|