Skip to content

Commit

Permalink
order by id asc
Browse files Browse the repository at this point in the history
  • Loading branch information
zeke committed Feb 26, 2023
1 parent acf117e commit 8539435
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/db.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,16 @@ export async function upsertPrediction(predictionData) {

export async function getRecentPredictions() {
const predictions = await prisma.prediction.findMany({
orderBy: [
{
id: "asc",
},
],
select: {
uuid: true,
input: true,
output: true,
},
skip: 0,
take: 1000,
});
return predictions;
Expand Down

1 comment on commit 8539435

@vercel
Copy link

@vercel vercel bot commented on 8539435 Feb 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.