diff --git a/src/app/api/admin/alerts/hours-usage/route.ts b/src/app/api/admin/alerts/hours-usage/route.ts index a5a2779..f69fed3 100644 --- a/src/app/api/admin/alerts/hours-usage/route.ts +++ b/src/app/api/admin/alerts/hours-usage/route.ts @@ -11,7 +11,12 @@ import { sendSmtpMail } from "@/server/email-smtp" export const runtime = "nodejs" function fmtHours(ms: number) { - return (ms / 3600000).toFixed(2) + const hours = ms / 3600000 + if (hours > 0 && hours < 1) { + const mins = Math.round(hours * 60) + return `${mins} min` + } + return `${hours.toFixed(2)} h` } export async function POST(request: Request) { @@ -85,7 +90,7 @@ export async function POST(request: Request) {
Reveja a alocação da equipe e, se necessário, ajuste o atendimento.
`