@merkl/api 0.19.43 → 0.19.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- export declare const main: () => Promise<void>;
1
+ export declare const main: () => Promise<never>;
@@ -150,4 +150,6 @@ export const main = async () => {
150
150
  }
151
151
  }
152
152
  // if (failedBatches.length === 0) await file.delete();
153
+ process.exit(0);
153
154
  };
155
+ main();
@@ -47,7 +47,7 @@ export default (app) => app.use(checkQueryAddressValidity()).get("/multiChainPos
47
47
  const positionsToCheck = {};
48
48
  for (const campaigns of Object.values(allOpportunities)) {
49
49
  for (const campaign of Object.values(campaigns)) {
50
- if (campaign.tags.includes(query.creatorTag)) {
50
+ if (campaign?.tags?.includes(query.creatorTag)) {
51
51
  const type = campaign.campaignType;
52
52
  positionsToCheck[type] = prepareFetch(type, positionsToCheck[type] ? positionsToCheck[type] : {}, campaign);
53
53
  }