feat: improve reports filters and ticket flows
This commit is contained in:
parent
9c74e10675
commit
15d11b6b12
29 changed files with 437 additions and 140 deletions
|
|
@ -14,6 +14,8 @@ export async function GET(request: Request) {
|
|||
const { searchParams } = new URL(request.url)
|
||||
const range = searchParams.get("range") ?? undefined // "7d" | "30d" | undefined(=90d)
|
||||
const companyId = searchParams.get("companyId") ?? undefined
|
||||
const dateFrom = searchParams.get("dateFrom") ?? undefined
|
||||
const dateTo = searchParams.get("dateTo") ?? undefined
|
||||
|
||||
const tenantId = session.user.tenantId ?? DEFAULT_TENANT_ID
|
||||
|
||||
|
|
@ -29,6 +31,8 @@ export async function GET(request: Request) {
|
|||
const artifact = await buildTicketsByChannelWorkbook(context, {
|
||||
range,
|
||||
companyId: companyId ?? undefined,
|
||||
dateFrom,
|
||||
dateTo,
|
||||
})
|
||||
|
||||
return new NextResponse(artifact.buffer, {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue