Skip to content

Commit

Permalink
K1J-423: Set correct event type for handle questions from care/recipient
Browse files Browse the repository at this point in the history
  • Loading branch information
cigerhed committed Oct 15, 2024
1 parent ad71f76 commit 8735e50
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,6 @@ public Question handle(String questionId, boolean isHandled) {
}

private HandelsekodEnum eventType(String author) {
return FrageStallare.WEBCERT.isKodEqual(author) ? HandelsekodEnum.HANFRFV : HandelsekodEnum.HANFRFM;
return FrageStallare.FORSAKRINGSKASSAN.isNameEqual(author) ? HandelsekodEnum.HANFRFM : HandelsekodEnum.HANFRFV;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class HandleQuestionFromCertificateServiceTest {
private static final String PERSON_ID = "personId";
private static final String WC = "WC";
private static final String CERTIFICATE_ID = "certificateId";
private static final String FK = "FK";
private static final String FK = "Försäkringskassan";
@Mock
private CSIntegrationService csIntegrationService;
@Mock
Expand Down Expand Up @@ -163,4 +163,4 @@ void shallPublishEventHandledByCare() {
handleQuestionFromCertificateService.handle(MESSAGE_ID, false);
verify(publishCertificateStatusUpdateService).publish(certificate, HandelsekodEnum.HANFRFV);
}
}
}

0 comments on commit 8735e50

Please sign in to comment.