Skip to content

Commit c28e706

Browse files
authored
dont charge cache hits (#3772)
1 parent e54b51e commit c28e706

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

valhalla/jawn/src/lib/handlers/StripeLogHandler.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ export class StripeLogHandler extends AbstractLogHandler {
4747
return await super.handle(context);
4848
}
4949

50+
if (context.message.log.request.cacheReferenceId) {
51+
return await super.handle(context);
52+
}
53+
5054
const stripe_customer_id = await cacheResultCustom(
5155
"stripe_customer_id_" + organizationId,
5256
async () => getStripeCustomerId(organizationId),

0 commit comments

Comments
 (0)