From 8ec5296ed8e0a157ef8cd5257bd48b530cf1a41f Mon Sep 17 00:00:00 2001 From: Jan Cortiel Date: Wed, 11 Dec 2024 13:23:37 +0100 Subject: [PATCH] Fix parameter order in updateParticipantStatus call Corrected the argument order in the updateParticipantStatus method to match its expected signature. This ensures proper status updates when withdrawing participant consent. --- .../java/io/redlink/more/data/repository/StudyRepository.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/redlink/more/data/repository/StudyRepository.java b/src/main/java/io/redlink/more/data/repository/StudyRepository.java index 07410cb..d6869e9 100644 --- a/src/main/java/io/redlink/more/data/repository/StudyRepository.java +++ b/src/main/java/io/redlink/more/data/repository/StudyRepository.java @@ -318,7 +318,7 @@ public void clearCredentials(String apiId) { final long studyId = rs.getLong("study_id"); final int participantId = rs.getInt("participant_id"); withdrawConsent(studyId, participantId); - updateParticipantStatus(studyId, participantId, 0, + updateParticipantStatus(studyId, 0, participantId, "active", "abandoned"); } );