fix: make param optional
This commit is contained in:
parent
26c9705b18
commit
16ceabe3df
1 changed files with 1 additions and 2 deletions
|
|
@ -13,7 +13,6 @@ import {
|
|||
Tags,
|
||||
} from "tsoa";
|
||||
|
||||
// import { Prisma } from "@prisma/client";
|
||||
import prisma from "../db";
|
||||
|
||||
import { RequestWithUser } from "../interfaces/user";
|
||||
|
|
@ -64,7 +63,7 @@ type CreditNoteUpdate = {
|
|||
export class CreditNoteController extends Controller {
|
||||
@Get("stats")
|
||||
@Security("keycloak")
|
||||
async getCreditNoteStats(@Request() req: RequestWithUser, @Query() quotationId: string) {
|
||||
async getCreditNoteStats(@Request() req: RequestWithUser, @Query() quotationId?: string) {
|
||||
const where = {
|
||||
requestWork: {
|
||||
some: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue