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) {