Skip to content

Commit

Permalink
fix(api-headless-cms): clear model cache on delete
Browse files Browse the repository at this point in the history
  • Loading branch information
brunozoric committed Oct 26, 2023
1 parent d4bdb5a commit 29d0d18
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/api-headless-cms/src/crud/contentModel.crud.ts
Original file line number Diff line number Diff line change
Expand Up @@ -662,6 +662,8 @@ export const createModelsCrud = (params: CreateModelsCrudParams): CmsModelContex
);
}

clearModelsCache();

await onModelAfterDelete.publish({
model
});
Expand Down

0 comments on commit 29d0d18

Please sign in to comment.