From a5df40fd4e9b162723357e606e0506686baa89e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Jovan=C3=AD=20Gonz=C3=A1lez?= <12443324+drackp2m@users.noreply.github.com> Date: Tue, 12 Mar 2024 13:04:39 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(api):=20use=20persistAndFlus?= =?UTF-8?q?h=20instead=20insert=20on=20game-participant=20repository?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/module/game/relations/game-participant.repository.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/api/src/module/game/relations/game-participant.repository.ts b/apps/api/src/module/game/relations/game-participant.repository.ts index f1c73b10..986d20ac 100644 --- a/apps/api/src/module/game/relations/game-participant.repository.ts +++ b/apps/api/src/module/game/relations/game-participant.repository.ts @@ -33,7 +33,7 @@ export class GameParticipantRepository { } async insert(entity: GameParticipant): Promise { - await this.entityManager.fork().insert(entity); + await this.entityManager.fork().persistAndFlush(entity); return entity; }