fix for this horrific bug (#1295)

This commit is contained in:
Jamie Pine 2021-12-11 08:32:25 -08:00 committed by GitHub
parent 3587e1ac9c
commit c359ebe85c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -159,7 +159,7 @@ export const viewerTeamsRouter = createProtectedRouter()
await ctx.prisma.membership.delete({
where: {
userId_teamId: { userId: ctx.user?.id, teamId: input.teamId },
userId_teamId: { userId: input.memberId, teamId: input.teamId },
},
});
},