Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
dohaki committed Sep 12, 2024
1 parent b997ae2 commit d62a6f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/cron-cache-balances.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const handler = async (
message: "Starting cron job...",
});
try {
const authHeader = (request.headers as any)?.get("authorization");
const authHeader = request.headers?.["authorization"];
if (
!process.env.CRON_SECRET ||
authHeader !== `Bearer ${process.env.CRON_SECRET}`
Expand Down

0 comments on commit d62a6f9

Please sign in to comment.