Skip to content

Commit b2a7f04

Browse files
committed
fix account request fetch
1 parent a66abf2 commit b2a7f04

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/web/src/actions.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1150,8 +1150,10 @@ export const redeemInvite = async (inviteId: string): Promise<{ success: boolean
11501150
// Delete the account request if it exists since we've redeemed an invite
11511151
const accountRequest = await tx.accountRequest.findUnique({
11521152
where: {
1153-
requestedById: user.id,
1154-
orgId: invite.orgId,
1153+
requestedById_orgId: {
1154+
requestedById: user.id,
1155+
orgId: invite.orgId,
1156+
}
11551157
},
11561158
});
11571159

0 commit comments

Comments
 (0)