From a0f17653092a5e7726c4c75716562a30429a7367 Mon Sep 17 00:00:00 2001 From: Methapon Metanipat Date: Mon, 21 Oct 2024 11:18:48 +0700 Subject: [PATCH] fix: file location --- src/utils/minio.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/minio.ts b/src/utils/minio.ts index 8fc89bd..55ed921 100644 --- a/src/utils/minio.ts +++ b/src/utils/minio.ts @@ -91,8 +91,8 @@ export const fileLocation = { img: (serviceId: string, name?: string) => `service/img-${serviceId}/${name || ""}`, }, quotation: { - payment: (quotationId: string, paymentId: string) => - `quotation/payment-${quotationId}/${paymentId || ""}`, + payment: (quotationId: string, paymentId: string, name?: string) => + `quotation/payment-${quotationId}/${paymentId}/${name || ""}`, }, request: { attachment: (requestId: string, name?: string) =>