diff --git a/lib/db.js b/lib/db.js index 55c7520..cbdabae 100644 --- a/lib/db.js +++ b/lib/db.js @@ -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;