We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7a6568 commit 9506b55Copy full SHA for 9506b55
apps/backend/src/research/study-participants/study-participants.service.ts
@@ -25,7 +25,7 @@ export class StudyParticipantsService {
25
26
async delete(studyParticipant: StudyParticipantMutationDto) {
27
const participantRef = this.em.getReference(Participant, studyParticipant.participantId);
28
- const study = await this.studyRepository.findOneOrFail(studyParticipant.studyId);
+ const study = await this.studyRepository.findOneOrFail(studyParticipant.studyId, { populate: ["participants"] });
29
study.participants.remove(participantRef);
30
31
await this.em.flush();
0 commit comments