added missing search cleanup (#20328)

This commit is contained in:
Mohit Yadav 2025-03-19 00:32:49 +05:30 committed by GitHub
parent 62c0ef09e9
commit fc9afbe74a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1310,6 +1310,7 @@ public abstract class EntityRepository<T extends EntityInterface> {
if (entity != null) {
DeleteResponse<T> response = deleteInternalByName(updatedBy, name, recursive, hardDelete);
postDelete(response.entity());
deleteFromSearch(response.entity(), hardDelete);
return response;
} else {
return new DeleteResponse<>(null, ENTITY_DELETED);