mirror of
https://github.com/ReCloudStudio/WebHooker.git
synced 2026-09-22 16:11:29 +00:00
chore: auto-fix lint & formatting [skip ci]
This commit is contained in:
parent
7ebd9aa63f
commit
92ba2203a5
1 changed files with 4 additions and 1 deletions
|
|
@ -115,7 +115,10 @@ export async function handleInteractionRequest(request: Request, env: Env): Prom
|
|||
return new Response("Invalid signature", { status: 401 });
|
||||
}
|
||||
const ts = Number(timestamp);
|
||||
if (!Number.isFinite(ts) || Math.abs(Math.floor(Date.now() / 1000) - ts) > TIMESTAMP_TOLERANCE_SECONDS) {
|
||||
if (
|
||||
!Number.isFinite(ts) ||
|
||||
Math.abs(Math.floor(Date.now() / 1000) - ts) > TIMESTAMP_TOLERANCE_SECONDS
|
||||
) {
|
||||
return new Response("Invalid signature", { status: 401 });
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue