RED-8219 - Wrong notification type for approvers #331
@ -194,7 +194,7 @@ public class StatusController implements StatusResource {
|
|||||||
notificationPersistenceService.insertNotification(AddNotificationRequest.builder()
|
notificationPersistenceService.insertNotification(AddNotificationRequest.builder()
|
||||||
.userId(assigneeId)
|
.userId(assigneeId)
|
||||||
.issuerId(KeycloakSecurity.getUserId())
|
.issuerId(KeycloakSecurity.getUserId())
|
||||||
.notificationType(NotificationType.ASSIGN_REVIEWER.name())
|
.notificationType(WorkflowStatus.APPROVED.equals(fileStatus.getWorkflowStatus()) ? NotificationType.ASSIGN_APPROVER.name() : NotificationType.ASSIGN_REVIEWER.name())
|
||||||
.target(Map.of(DOSSIER_ID, dossierId, FILE_ID, fileId, FILE_NAME, fileStatus.getFilename()))
|
.target(Map.of(DOSSIER_ID, dossierId, FILE_ID, fileId, FILE_NAME, fileStatus.getFilename()))
|
||||||
.build());
|
.build());
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user