Skip to content

Commit

Permalink
feat: test not passing api key to nft tools
Browse files Browse the repository at this point in the history
  • Loading branch information
nofir committed Jan 21, 2025
1 parent c1cdaee commit 7356bed
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/jobs/seaport-sync/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ export const fetchOrders = async (

const headers: any = {
url,
"X-API-KEY": !_.includes(
"X-API-KEY": _.includes(
[5, 80001, 80002, 84531, 999, 11155111],
config.chainId
)
? details?.apiKey || config.realtimeOpenseaApiKey
: "",
) || config.openseaApiUrl && config.openseaNftApiKey
? ""
: details?.apiKey || config.realtimeOpenseaApiKey,
};

if (config.openseaApiUrl && config.openseaNftApiKey) {
Expand Down

0 comments on commit 7356bed

Please sign in to comment.