fix: entity reference look up for domain (#15439)

This commit is contained in:
Teddy 2024-03-07 08:12:36 +01:00 committed by GitHub
parent ceaf205f59
commit ec5c3fc395
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -16,6 +16,7 @@ package org.openmetadata.service.util;
import static org.openmetadata.common.utils.CommonUtil.listOrEmpty;
import static org.openmetadata.common.utils.CommonUtil.nullOrEmpty;
import static org.openmetadata.schema.type.Include.ALL;
import static org.openmetadata.schema.type.Include.NON_DELETED;
import java.io.IOException;
import java.security.MessageDigest;
@ -538,7 +539,7 @@ public final class EntityUtil {
}
List<EntityReference> references = new ArrayList<>();
for (String fqn : fqns) {
references.add(getEntityReference(entityType, fqn));
references.add(Entity.getEntityReferenceByName(entityType, fqn, NON_DELETED));
}
return references;
}