Skip to content

Commit

Permalink
set status for export participants as it leads to an error otherwise
Browse files Browse the repository at this point in the history
  • Loading branch information
drtyyj committed Jun 5, 2024
1 parent 540ec1d commit f8ed0c7
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ public StudyImportExport exportStudy(Long studyId, User user) {
.setIntegrations(new ArrayList<>());

export.setParticipants(participantService.listParticipants(studyId).stream().map(participant ->
new Participant().setStudyGroupId(participant.getStudyGroupId())
new Participant()
.setStudyGroupId(participant.getStudyGroupId())
.setStatus(participant.getStatus())
).toList());

export.setIntegrations(
Expand Down

0 comments on commit f8ed0c7

Please sign in to comment.