diff --git a/src/datasources/db/participantAPI.ts b/src/datasources/db/participantAPI.ts index 8efd5b8..ce01f09 100644 --- a/src/datasources/db/participantAPI.ts +++ b/src/datasources/db/participantAPI.ts @@ -230,7 +230,7 @@ export class ParticipantAPI extends DataSource { .createQueryBuilder('w') .relation(Participant, 'workshopIds') .of(participant.id) - .add(workshops); + .addAndRemove(workshops, await this.workshopsByParticipantId(participant.id)); }); !keepLock && await this.unlockParticipant(participant.id, userId); return await this.participantById(participant.id);