From 6e29ce3019a801478b19008bcbb9b8327a78f767 Mon Sep 17 00:00:00 2001 From: Koffe <78866073+ThatKoffe@users.noreply.github.com> Date: Tue, 5 Dec 2023 20:13:19 +0100 Subject: [PATCH] Fix bug :) --- src/routes/bots/[bot_id]/vote/+page.server.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/routes/bots/[bot_id]/vote/+page.server.ts b/src/routes/bots/[bot_id]/vote/+page.server.ts index 4990cd8..56c030a 100644 --- a/src/routes/bots/[bot_id]/vote/+page.server.ts +++ b/src/routes/bots/[bot_id]/vote/+page.server.ts @@ -29,6 +29,9 @@ export async function load({ locals, params }) { where: { bot_id: bot.id, voter_id: locals.actor!.id + }, + orderBy: { + created_time: 'desc' } });