Skip to content

Commit f4365a7

Browse files
waleedlatif1claude
andcommitted
fix(triggers): use Number.parseInt and Number.isNaN for lint compliance
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 2b8a9e5 commit f4365a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/sim/lib/webhooks/providers/resend.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ function verifySvixSignature(
4949
rawBody: string
5050
): boolean {
5151
try {
52-
const ts = parseInt(timestamp, 10)
52+
const ts = Number.parseInt(timestamp, 10)
5353
const now = Math.floor(Date.now() / 1000)
54-
if (isNaN(ts) || Math.abs(now - ts) > 5 * 60) {
54+
if (Number.isNaN(ts) || Math.abs(now - ts) > 5 * 60) {
5555
return false
5656
}
5757

0 commit comments

Comments
 (0)