mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-26 17:34:41 +00:00
added missing search cleanup (#20328)
This commit is contained in:
parent
62c0ef09e9
commit
fc9afbe74a
@ -1310,6 +1310,7 @@ public abstract class EntityRepository<T extends EntityInterface> {
|
|||||||
if (entity != null) {
|
if (entity != null) {
|
||||||
DeleteResponse<T> response = deleteInternalByName(updatedBy, name, recursive, hardDelete);
|
DeleteResponse<T> response = deleteInternalByName(updatedBy, name, recursive, hardDelete);
|
||||||
postDelete(response.entity());
|
postDelete(response.entity());
|
||||||
|
deleteFromSearch(response.entity(), hardDelete);
|
||||||
return response;
|
return response;
|
||||||
} else {
|
} else {
|
||||||
return new DeleteResponse<>(null, ENTITY_DELETED);
|
return new DeleteResponse<>(null, ENTITY_DELETED);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user