Skip to content

Commit

Permalink
ensure the daily stat is iterated on *every* block
Browse files Browse the repository at this point in the history
  • Loading branch information
apexearth committed Dec 23, 2024
1 parent 2dfc2d0 commit 14982ea
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/templates/otoken/otoken.ts
Original file line number Diff line number Diff line change
Expand Up @@ -857,11 +857,11 @@ export const createOTokenProcessor = (params: {
}
}

for (const block of ctx.blocks) {
await getOTokenDailyStat(block)
}

for (const block of ctx.blocksWithContent) {
const possiblePromise = getOTokenDailyStat(block)
if (possiblePromise instanceof Promise) {
await possiblePromise
}
for (const trace of block.traces) {
if (
trace.type === 'call' &&
Expand Down

0 comments on commit 14982ea

Please sign in to comment.