Skip to content

Commit 465ec55

Browse files
fix: Prevent CheckConfig IDs from colliding by using a UUID. (#359)
1 parent abcc789 commit 465ec55

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

builder-api/src/main/java/org/acme/controller/CustomBenefitResource.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,8 +300,9 @@ public Response addCheckToBenefit(
300300
Benefit benefit = benefitOpt.get();
301301

302302
// Create CheckConfig snapshot from the EligibilityCheck
303+
String newCheckConfigId = UUID.randomUUID().toString();
303304
CheckConfig checkConfig = new CheckConfig(
304-
check.getId(),
305+
newCheckConfigId,
305306
check.getName(),
306307
check.getVersion(),
307308
check.getModule(),

0 commit comments

Comments
 (0)