Skip to content

Commit

Permalink
update api
Browse files Browse the repository at this point in the history
  • Loading branch information
RedBeardEth committed Jan 6, 2025
1 parent 8ca622d commit 34e54de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/nextjs/src/app/api/dune/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ export async function GET(request: Request) {
amount: row.amount as string,
transaction_hash: row.transaction_hash as string,
//block_time: new Date(row.block_time),
epoch: row.epoch as Date,
epoch: new Date(row.epoch),
epoch_total_amount: row.epoch_total_amount as string,
sender_epoch_total_amount: row.sender_epoch_total_amount as string,
}),
) satisfies (typeof schema.velords_burns.$inferInsert)[];
console.log(filteredRows);
console.log(filteredRows.slice(-6));

try {
const tokenAttributeResult = await db
Expand All @@ -36,7 +36,7 @@ export async function GET(request: Request) {
.returning({
source: schema.velords_burns.source,
amount: schema.velords_burns.amount,
epoch: schema.velords_burns.epoch,
//epoch: schema.velords_burns.epoch,
});

console.log(tokenAttributeResult);
Expand Down

0 comments on commit 34e54de

Please sign in to comment.