From 158b74b6f1acc2a96dbe92629803ece475b8f30f Mon Sep 17 00:00:00 2001 From: Diger Date: Sun, 11 Aug 2024 21:26:02 +0900 Subject: [PATCH 1/2] fix: Resolve Id Parsing Error In OriginPlace --- .../kotlin/com/piikii/application/domain/place/OriginPlace.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/piikii-application/src/main/kotlin/com/piikii/application/domain/place/OriginPlace.kt b/piikii-application/src/main/kotlin/com/piikii/application/domain/place/OriginPlace.kt index 2efa28af..1c2d07a1 100644 --- a/piikii-application/src/main/kotlin/com/piikii/application/domain/place/OriginPlace.kt +++ b/piikii-application/src/main/kotlin/com/piikii/application/domain/place/OriginPlace.kt @@ -32,7 +32,8 @@ value class OriginMapId(val value: String) { id: LongTypeId, origin: Origin, ): OriginMapId { - return OriginMapId("${origin.prefix}$SEPARATOR$id") + val originMapId = OriginMapId("${origin.prefix}$SEPARATOR${id.getValue()}") + return originMapId } } } From 32b318f08e3f44e7e4c26c5ad51ffa4320ef99ad Mon Sep 17 00:00:00 2001 From: Diger Date: Sun, 11 Aug 2024 21:28:37 +0900 Subject: [PATCH 2/2] style: Simplify Syntax for Debug --- .../kotlin/com/piikii/application/domain/place/OriginPlace.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/piikii-application/src/main/kotlin/com/piikii/application/domain/place/OriginPlace.kt b/piikii-application/src/main/kotlin/com/piikii/application/domain/place/OriginPlace.kt index 1c2d07a1..b506100f 100644 --- a/piikii-application/src/main/kotlin/com/piikii/application/domain/place/OriginPlace.kt +++ b/piikii-application/src/main/kotlin/com/piikii/application/domain/place/OriginPlace.kt @@ -32,8 +32,7 @@ value class OriginMapId(val value: String) { id: LongTypeId, origin: Origin, ): OriginMapId { - val originMapId = OriginMapId("${origin.prefix}$SEPARATOR${id.getValue()}") - return originMapId + return OriginMapId("${origin.prefix}$SEPARATOR${id.getValue()}") } } }