We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3f81f1 commit d21cdd1Copy full SHA for d21cdd1
examples/snippets/meter_event_stream.ts
@@ -20,7 +20,7 @@ let meterEventSession: null | any = null;
20
async function refreshMeterEventSession() {
21
if (
22
meterEventSession === null ||
23
- new Date(meterEventSession.expires_at * 1000) <= new Date()
+ new Date(meterEventSession.expires_at) <= new Date()
24
) {
25
// Create a new meter event session in case the existing session expired
26
const client = new Stripe(apiKey);
0 commit comments