diff --git a/app/backend/src/mogaco/mogaco.repository.ts b/app/backend/src/mogaco/mogaco.repository.ts index e0b6452f3..15a4ac683 100644 --- a/app/backend/src/mogaco/mogaco.repository.ts +++ b/app/backend/src/mogaco/mogaco.repository.ts @@ -55,6 +55,13 @@ export class MogacoRepository { }, }); + await this.prisma.participant.create({ + data: { + postId: mogaco.id, + userId: Number(member.id), + }, + }); + return mogaco; } catch (error) { throw new Error(`Failed to create Mogaco: ${error.message}`);