Skip to content

Commit

Permalink
fix: limit tweet to top 5 protocols
Browse files Browse the repository at this point in the history
  • Loading branch information
pradel committed Mar 30, 2024
1 parent 43fa002 commit 27744ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/api/cron/weekly-users/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ export async function GET() {
})
.from(transactionTable)
.where(gt(transactionTable.timestamp, dateBegin))
.groupBy(transactionTable.protocol);
.groupBy(transactionTable.protocol)
.limit(5);
const stats = await query;

const data = stats.map((stat) => ({
Expand Down

0 comments on commit 27744ca

Please sign in to comment.