From 9404338648c19aff955ea32f5f9678e9b7b0748b Mon Sep 17 00:00:00 2001 From: Puneet Khanduri Date: Fri, 9 Jun 2023 17:25:08 +0530 Subject: [PATCH] fixed candidate primary placement bug --- src/main/scala/ai/diffy/analysis/DifferenceCollector.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/scala/ai/diffy/analysis/DifferenceCollector.scala b/src/main/scala/ai/diffy/analysis/DifferenceCollector.scala index afc93e7..8670abd 100644 --- a/src/main/scala/ai/diffy/analysis/DifferenceCollector.scala +++ b/src/main/scala/ai/diffy/analysis/DifferenceCollector.scala @@ -69,9 +69,9 @@ class DifferenceAnalyzer( differencesToJson(rawDiff).asJava, JsonLifter.encode(request.result), new Responses( - JsonLifter.encode(candidate.result), JsonLifter.encode(primary.result), - JsonLifter.encode(secondary.result) + JsonLifter.encode(secondary.result), + JsonLifter.encode(candidate.result) )); store.create(diffResult) val saved = repository.save(diffResult)