From a690e743bde8bd20aa53161f7882a55a5df634e7 Mon Sep 17 00:00:00 2001 From: tkuzynow Date: Fri, 15 Sep 2023 09:28:32 +0200 Subject: [PATCH] feat: enable setting of tenant id on consultant creation --- .../admin/service/consultant/ConsultantResponseDTOBuilder.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/de/caritas/cob/userservice/api/admin/service/consultant/ConsultantResponseDTOBuilder.java b/src/main/java/de/caritas/cob/userservice/api/admin/service/consultant/ConsultantResponseDTOBuilder.java index b06eae41c..ee2087dbb 100644 --- a/src/main/java/de/caritas/cob/userservice/api/admin/service/consultant/ConsultantResponseDTOBuilder.java +++ b/src/main/java/de/caritas/cob/userservice/api/admin/service/consultant/ConsultantResponseDTOBuilder.java @@ -68,7 +68,8 @@ private ConsultantDTO buildConsultantDTO(Consultant consultant) { .createDate(String.valueOf(consultant.getCreateDate())) .updateDate(String.valueOf(consultant.getUpdateDate())) .deleteDate(String.valueOf(consultant.getDeleteDate())) - .status(String.valueOf(consultant.getStatus())); + .status(String.valueOf(consultant.getStatus())) + .tenantId(consultant.getTenantId() != null ? consultant.getTenantId().intValue() : null); } private HalLink buildSelfLink() {