diff --git a/src/admin/pages/Dashboard.tsx b/src/admin/pages/Dashboard.tsx index 7defbd1..e2e329b 100644 --- a/src/admin/pages/Dashboard.tsx +++ b/src/admin/pages/Dashboard.tsx @@ -493,7 +493,7 @@ export default function Dashboard() {
- Prošlé + Zneplatněné {dashData.offers.expired_count} diff --git a/src/routes/admin/dashboard.ts b/src/routes/admin/dashboard.ts index fb5555e..6adbbff 100644 --- a/src/routes/admin/dashboard.ts +++ b/src/routes/admin/dashboard.ts @@ -142,8 +142,8 @@ export default async function dashboardRoutes( const [openCount, convertedCount, expiredCount, createdThisMonth] = await Promise.all([ prisma.quotations.count({ where: { status: "active" } }), - prisma.quotations.count({ where: { status: "converted" } }), - prisma.quotations.count({ where: { status: "expired" } }), + prisma.quotations.count({ where: { status: "ordered" } }), + prisma.quotations.count({ where: { status: "invalidated" } }), prisma.quotations.count({ where: { created_at: { gte: monthStart, lt: monthEnd } }, }),