Show ticket Teamspace totals

This commit is contained in:
2026-08-05 14:11:30 +02:00
parent 0325631d02
commit cfc4ef45a8
2 changed files with 11 additions and 4 deletions
+1 -1
View File
@@ -665,7 +665,7 @@ async function getPeriodTicket(config: PeriodConfig, period: ParsedPeriod, ticke
const periodClosureJoin =
config.type === "month"
? "LEFT JOIN month_closures pc ON pc.month = $3::date AND pc.user_id = $2"
: "LEFT JOIN (SELECT NULL::timestamptz AS closed_at) pc ON true";
: "LEFT JOIN (SELECT $3::date AS period_start, NULL::timestamptz AS closed_at) pc ON true";
const ticketResult = await query(
`
SELECT