Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9779112066 | ||
|
|
e8d6dc1567 |
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "app-ts",
|
"name": "app-ts",
|
||||||
"version": "1.3.5",
|
"version": "1.3.6",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "app-ts",
|
"name": "app-ts",
|
||||||
"version": "1.3.5",
|
"version": "1.3.6",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@dnd-kit/core": "^6.3.1",
|
"@dnd-kit/core": "^6.3.1",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "app-ts",
|
"name": "app-ts",
|
||||||
"version": "1.3.5",
|
"version": "1.3.6",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "dist/server.js",
|
"main": "dist/server.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -493,7 +493,7 @@ export default function Dashboard() {
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div className="dash-stat-row">
|
<div className="dash-stat-row">
|
||||||
<span>Prošlé</span>
|
<span>Zneplatněné</span>
|
||||||
<span className="admin-badge admin-badge-warning">
|
<span className="admin-badge admin-badge-warning">
|
||||||
{dashData.offers.expired_count}
|
{dashData.offers.expired_count}
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
@@ -142,8 +142,8 @@ export default async function dashboardRoutes(
|
|||||||
const [openCount, convertedCount, expiredCount, createdThisMonth] =
|
const [openCount, convertedCount, expiredCount, createdThisMonth] =
|
||||||
await Promise.all([
|
await Promise.all([
|
||||||
prisma.quotations.count({ where: { status: "active" } }),
|
prisma.quotations.count({ where: { status: "active" } }),
|
||||||
prisma.quotations.count({ where: { status: "converted" } }),
|
prisma.quotations.count({ where: { status: "ordered" } }),
|
||||||
prisma.quotations.count({ where: { status: "expired" } }),
|
prisma.quotations.count({ where: { status: "invalidated" } }),
|
||||||
prisma.quotations.count({
|
prisma.quotations.count({
|
||||||
where: { created_at: { gte: monthStart, lt: monthEnd } },
|
where: { created_at: { gte: monthStart, lt: monthEnd } },
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in New Issue
Block a user