fix: also add for restoration

This commit is contained in:
Charles GTE
2026-06-07 11:15:21 +02:00
parent 2932149b92
commit 02a8f0baf9
11 changed files with 3056 additions and 28 deletions
@@ -59,6 +59,9 @@ export default async function RoutePage(props: PageParams<{
const restorations = await db.query.restoration.findMany({
where: eq(drizzleDb.schemas.restoration.databaseId, dbItem.id),
with: {
logs: true
},
orderBy: (r, {desc}) => [desc(r.createdAt)],
});