From 9e38fac8a7818e249fe11394930e41ba039ba158 Mon Sep 17 00:00:00 2001 From: Methapon Metanipat Date: Wed, 16 Oct 2024 11:38:18 +0700 Subject: [PATCH] fix: wrong path --- src/controllers/05-quotation-payment-controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/05-quotation-payment-controller.ts b/src/controllers/05-quotation-payment-controller.ts index a2acb78..0bd9ef3 100644 --- a/src/controllers/05-quotation-payment-controller.ts +++ b/src/controllers/05-quotation-payment-controller.ts @@ -9,7 +9,7 @@ import { fileLocation, getFile, setFile } from "../utils/minio"; @Tags("Quotation") @Route("api/v1/quotation/{quotationId}/payment") export class QuotationPayment extends Controller { - @Get("quotationId") + @Get() async getPayment(@Path() quotationId: string) { const record = await prisma.quotation.findFirst({ where: { id: quotationId },