release: squash merge develop → master (#206,#207) #210

Closed
jmartin wants to merge 68 commits from develop into master
Showing only changes of commit c3fd098464 - Show all commits
+3 -5
View File
@@ -204,14 +204,12 @@ export class CardsService {
throw new BadRequestException('Motivation obligatoire en cas de refus'); throw new BadRequestException('Motivation obligatoire en cas de refus');
} }
await this.responsesRepo.save( await this.responsesRepo.insert({
this.responsesRepo.create({
id_card: card.id, id_card: card.id,
id_utilisateur: userId, id_utilisateur: userId,
action: dto.action, action: dto.action,
comment: dto.comment?.trim(), comment: dto.comment?.trim() || null,
}), });
);
if (card.id_absence) { if (card.id_absence) {
if (dto.action === CardResponseActionType.ACCEPT || dto.action === CardResponseActionType.ACK) { if (dto.action === CardResponseActionType.ACCEPT || dto.action === CardResponseActionType.ACK) {