From fa95b3d96b6efb14db267040bab7294d3fd7de98 Mon Sep 17 00:00:00 2001 From: Danka Marcell Date: Wed, 27 Nov 2024 22:43:56 +0100 Subject: [PATCH] build fix again --- apps/backend/src/band/band.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/backend/src/band/band.service.ts b/apps/backend/src/band/band.service.ts index 1dc0236..165c9d7 100644 --- a/apps/backend/src/band/band.service.ts +++ b/apps/backend/src/band/band.service.ts @@ -82,7 +82,7 @@ export class BandService { async removeMember(bandId: number, userId: number): Promise { try { - const res = await this.prisma.bandMembership.delete({ where: { bandId, userId } }); + const res = await this.prisma.bandMembership.deleteMany({ where: { bandId, userId } }); if (!res) throw new Error(); return res; } catch (error) {