From 7e1b645e97e139f097516a872c1dab3fb03fc9ce Mon Sep 17 00:00:00 2001 From: Michael Hoennig Date: Tue, 12 Mar 2024 10:09:09 +0100 Subject: [PATCH] use getPartnerRole --- .../hsadminng/hs/office/migration/ImportOfficeData.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/net/hostsharing/hsadminng/hs/office/migration/ImportOfficeData.java b/src/test/java/net/hostsharing/hsadminng/hs/office/migration/ImportOfficeData.java index 5559b97c..756c9618 100644 --- a/src/test/java/net/hostsharing/hsadminng/hs/office/migration/ImportOfficeData.java +++ b/src/test/java/net/hostsharing/hsadminng/hs/office/migration/ImportOfficeData.java @@ -224,8 +224,8 @@ public class ImportOfficeData extends ContextBasedTest { debitors.forEach( (id, debitor) -> { final var debitorRel = HsOfficeRelationshipEntity.builder() .relType(HsOfficeRelationshipType.DEBITOR) - .relAnchor(debitor.getPartner().getPerson()) - .relHolder(debitor.getPartner().getPerson()) // just 1 debitor/partner in legacy hsadmin + .relAnchor(debitor.getPartner().getPartnerRole().getRelHolder()) + .relHolder(debitor.getPartner().getPartnerRole().getRelHolder()) // just 1 debitor/partner in legacy hsadmin .contact(debitor.getBillingContact()) .build(); if (debitorRel.getRelAnchor() != null && debitorRel.getRelHolder() != null &&