Skip to content

Commit

Permalink
build fix again
Browse files Browse the repository at this point in the history
  • Loading branch information
Danka Marcell committed Nov 27, 2024
1 parent 88736fb commit fa95b3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/backend/src/band/band.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export class BandService {

async removeMember(bandId: number, userId: number): Promise<BandMembership> {
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) {
Expand Down

0 comments on commit fa95b3d

Please sign in to comment.