From f8725600950b511233be842aa5d63f7213825e0c Mon Sep 17 00:00:00 2001 From: Pontus Abrahamsson Date: Mon, 18 Dec 2023 16:00:35 +0100 Subject: [PATCH] duration --- apps/dashboard/package.json | 2 +- apps/dashboard/src/app/api/trigger/route.ts | 2 +- .../src/components/charts/bar-chart.tsx | 3 +-- .../modals/export-transactions-modal.tsx | 2 +- bun.lockb | Bin 405272 -> 405272 bytes 5 files changed, 4 insertions(+), 5 deletions(-) diff --git a/apps/dashboard/package.json b/apps/dashboard/package.json index 73c9cec9d7..b7505f7c92 100644 --- a/apps/dashboard/package.json +++ b/apps/dashboard/package.json @@ -33,7 +33,7 @@ "ms": "^2.1.3", "next": "14.0.4", "next-international": "^1.1.4", - "next-safe-action": "^5.2.1", + "next-safe-action": "^5.2.3", "next-themes": "^0.2.1", "next-usequerystate": "^1.13.2", "react": "18.2.0", diff --git a/apps/dashboard/src/app/api/trigger/route.ts b/apps/dashboard/src/app/api/trigger/route.ts index 7a9a49a0c5..764d363df1 100644 --- a/apps/dashboard/src/app/api/trigger/route.ts +++ b/apps/dashboard/src/app/api/trigger/route.ts @@ -2,7 +2,7 @@ import { client } from "@midday/jobs"; import { createAppRoute } from "@trigger.dev/nextjs"; export const runtime = "nodejs"; -export const maxDuration = 60; +export const maxDuration = 300; // 5min import "@midday/jobs"; diff --git a/apps/dashboard/src/components/charts/bar-chart.tsx b/apps/dashboard/src/components/charts/bar-chart.tsx index 3b66f2d892..91f2b5750b 100644 --- a/apps/dashboard/src/components/charts/bar-chart.tsx +++ b/apps/dashboard/src/components/charts/bar-chart.tsx @@ -144,8 +144,7 @@ export function BarChart({ data }) { formatAmount({ maximumFractionDigits: 0, minimumFractionDigits: 0, - // TODO: Fix - currency: "SEK", + currency: data.summary.currency, amount: value, }) } diff --git a/apps/dashboard/src/components/modals/export-transactions-modal.tsx b/apps/dashboard/src/components/modals/export-transactions-modal.tsx index 8f2b5bc6f6..bb30343753 100644 --- a/apps/dashboard/src/components/modals/export-transactions-modal.tsx +++ b/apps/dashboard/src/components/modals/export-transactions-modal.tsx @@ -47,7 +47,7 @@ export function ExportTransactionsModal({ Export - {totalMissingAttachments && ( + {totalMissingAttachments > 0 && (
diff --git a/bun.lockb b/bun.lockb index ae543baed4128734fcd9a5c876b87c07b45c3f5e..52d34a171afc4dc4c1389b1af95d20c544d74826 100755 GIT binary patch delta 165 zcmV;W09yZ;-WZtP7?3U?-c%$wj7Td8n2mQvNl!8XxyDg$CM7L!`DUdne^Abrfljqf z0SYUV*jq4%h${iNh${j$lRtJe!xPY?On<~zI7lQKFO^SZC%bUVxD^Xg#j@lxgvYjb zm3`2K