From 708744b724df5b84f9abda8cc281e7b89d060e86 Mon Sep 17 00:00:00 2001 From: rene Date: Sun, 17 May 2026 14:20:03 +0200 Subject: [PATCH] Fix: sort by id statt created (autodate-Felder fehlen in Collection) --- app/src/routes/admin/dashboard/+page.svelte | 2 +- app/src/routes/admin/logs/+page.svelte | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/routes/admin/dashboard/+page.svelte b/app/src/routes/admin/dashboard/+page.svelte index 0f2b220..bd32c37 100644 --- a/app/src/routes/admin/dashboard/+page.svelte +++ b/app/src/routes/admin/dashboard/+page.svelte @@ -24,7 +24,7 @@ const dateStr = today.toISOString().slice(0, 19).replace('T', ' '); const result = await pb.collection('check_logs').getList(1, 50, { - sort: '-created' + sort: '-id' }); logs = result.items; diff --git a/app/src/routes/admin/logs/+page.svelte b/app/src/routes/admin/logs/+page.svelte index b975cc5..c4c1cbb 100644 --- a/app/src/routes/admin/logs/+page.svelte +++ b/app/src/routes/admin/logs/+page.svelte @@ -25,7 +25,7 @@ const result = await pb.collection('check_logs').getList(p, PER_PAGE, { filter: `tenant = '${tenantId}'`, expand: 'station', - sort: '-created' + sort: '-id' }); logs = result.items; page = p;