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,
|
Tags,
|
||||||
} from "tsoa";
|
} from "tsoa";
|
||||||
|
|
||||||
// import { Prisma } from "@prisma/client";
|
|
||||||
import prisma from "../db";
|
import prisma from "../db";
|
||||||
|
|
||||||
import { RequestWithUser } from "../interfaces/user";
|
import { RequestWithUser } from "../interfaces/user";
|
||||||
|
|
@ -64,7 +63,7 @@ type CreditNoteUpdate = {
|
||||||
export class CreditNoteController extends Controller {
|
export class CreditNoteController extends Controller {
|
||||||
@Get("stats")
|
@Get("stats")
|
||||||
@Security("keycloak")
|
@Security("keycloak")
|
||||||
async getCreditNoteStats(@Request() req: RequestWithUser, @Query() quotationId: string) {
|
async getCreditNoteStats(@Request() req: RequestWithUser, @Query() quotationId?: string) {
|
||||||
const where = {
|
const where = {
|
||||||
requestWork: {
|
requestWork: {
|
||||||
some: {
|
some: {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue