Skip to content

Commit 0f293a7

Browse files
committed
Use parentheses to make sure the token list query respects idempotency key correctly
1 parent 721558b commit 0f293a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/webapp/app/presenters/v3/WaitpointTokenListPresenter.server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ export class WaitpointTokenListPresenter extends BasePresenter {
187187
}
188188
${
189189
idempotencyKey
190-
? Prisma.sql`AND w."idempotencyKey" = ${idempotencyKey} OR w."inactiveIdempotencyKey" = ${idempotencyKey}`
190+
? Prisma.sql`AND (w."idempotencyKey" = ${idempotencyKey} OR w."inactiveIdempotencyKey" = ${idempotencyKey})`
191191
: Prisma.empty
192192
}
193193
${

0 commit comments

Comments
 (0)