Skip to content

Commit d5f005c

Browse files
committed
fix(fireflies): only pass through a numeric reprocessed_at
1 parent c890a99 commit d5f005c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎apps/sim/lib/webhooks/providers/fireflies.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,10 @@ export const firefliesHandler: WebhookProviderHandler = {
5555
const clientReferenceId = ((isV2 ? b.client_reference_id : b.clientReferenceId) || '') as string
5656
const rawTimestamp = b.timestamp != null ? Number(b.timestamp) : null
5757
const timestamp = rawTimestamp !== null && Number.isFinite(rawTimestamp) ? rawTimestamp : null
58-
const rawReprocessedAt = isV2 && b.reprocessed_at != null ? Number(b.reprocessed_at) : null
5958
const reprocessedAt =
60-
rawReprocessedAt !== null && Number.isFinite(rawReprocessedAt) ? rawReprocessedAt : null
59+
isV2 && typeof b.reprocessed_at === 'number' && Number.isFinite(b.reprocessed_at)
60+
? b.reprocessed_at
61+
: null
6162

6263
return {
6364
input: {

0 commit comments

Comments
 (0)