bug updateParticipant with workshopIds

pull/35/head
leonnicolas 4 years ago
parent 4c0f0fd06d
commit bf1c057763
No known key found for this signature in database
GPG Key ID: 088D0743E2B65C07

@ -230,7 +230,7 @@ export class ParticipantAPI extends DataSource {
.createQueryBuilder('w') .createQueryBuilder('w')
.relation(Participant, 'workshopIds') .relation(Participant, 'workshopIds')
.of(participant.id) .of(participant.id)
.add(workshops); .addAndRemove(workshops, await this.workshopsByParticipantId(participant.id));
}); });
!keepLock && await this.unlockParticipant(participant.id, userId); !keepLock && await this.unlockParticipant(participant.id, userId);
return await this.participantById(participant.id); return await this.participantById(participant.id);

Loading…
Cancel
Save