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
|
|
@ -13,6 +13,8 @@ export async function GET(request: Request) {
|
|||
const range = searchParams.get("range") ?? undefined
|
||||
const q = searchParams.get("q")?.toLowerCase().trim() ?? ""
|
||||
const companyId = searchParams.get("companyId") ?? ""
|
||||
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) {
|
|||
range,
|
||||
companyId: companyId || undefined,
|
||||
search: q || undefined,
|
||||
dateFrom,
|
||||
dateTo,
|
||||
})
|
||||
|
||||
return new NextResponse(artifact.buffer, {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue