Skip to content

Commit

Permalink
update time-series.mdx (#951)
Browse files Browse the repository at this point in the history
  • Loading branch information
edwinbernadus authored Jul 1, 2024
1 parent 09bb735 commit 331a72c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/pages/docs/indexing/time-series.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ ponder.on("Token:Swap", async ({ event, context }) => {
const { timestamp } = event.block;
const { price } = event.args;

const hourId = Math.floor((timestamp / secondsInHour) * secondsInHour);
const hourId = Math.floor(timestamp / secondsInHour) * secondsInHour;

await context.db.HourBucket.upsert({
id: hourId,
Expand Down

0 comments on commit 331a72c

Please sign in to comment.