Show ticket Teamspace totals
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user