Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vrtnd committed Sep 2, 2023
1 parent 15fffec commit d842c6f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/utils/aggregate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,7 @@ export const runAggregateDataAllAdapters = async (timestamp: number, hourly: boo
const chainsPromises = Promise.all(
chains.map(async (chain) => {
try {
let chainContractsAreOn = bridgeNetwork.chainMapping?.[chain] ? bridgeNetwork.chainMapping?.[chain] : chain;
chainContractsAreOn = chainContractsAreOn === "avax" ? "avalanche" : chainContractsAreOn;
await aggregateData(timestamp, bridgeDbName, chainContractsAreOn, hourly, largeTxThreshold);
await aggregateData(timestamp, bridgeDbName, chain, hourly, largeTxThreshold);
} catch (e) {
const errString = `Unable to aggregate hourly data for ${bridgeDbName} on chain ${chain}, skipping.`;
await insertErrorRow({
Expand Down

0 comments on commit d842c6f

Please sign in to comment.