Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
juliangruber committed Nov 5, 2023
1 parent 2589794 commit d9cfc8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { STATUS_CODES } from 'node:http'
import assert from 'node:assert'
import Sentry from '@sentry/node'

const handler = async (req, res, apiKey, fetch, log) => {
const handler = async (req, res, apiKey, fetch) => {
const address = req.url.split('/')[1].trim()
const fetchRes = await fetch(
`https://public.chainalysis.com/api/v1/address/${address}`,
Expand All @@ -24,7 +24,7 @@ export const createHandler = ({
fetch = globalThis.fetch,
log = console.log
}) => (req, res) => {
handler(req, res, apiKey, fetch, log).catch(err => {
handler(req, res, apiKey, fetch).catch(err => {
log(err)
Sentry.captureException(err)
res.statusCode = 500
Expand Down

0 comments on commit d9cfc8a

Please sign in to comment.