From e3745c34b234a0e572afbca544dd35c6d9722db5 Mon Sep 17 00:00:00 2001 From: Methapon Metanipat Date: Fri, 13 Sep 2024 09:16:26 +0700 Subject: [PATCH] feat: add file location for employee --- src/utils/minio.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/utils/minio.ts b/src/utils/minio.ts index 8aecc4c..1937e3a 100644 --- a/src/utils/minio.ts +++ b/src/utils/minio.ts @@ -64,6 +64,11 @@ export const fileLocation = { img: (employeeId: string, name?: string) => `employee/img-${employeeId}/${name || ""}`, attachment: (employeeId: string, name?: string) => `employee/attachment-${employeeId}/${name || ""}`, + visa: (employeeId: string, visaId?: string) => `employee/visa-${employeeId}/${visaId || ""}`, + passport: (employeeId: string, passportId?: string) => + `employee/passport-${employeeId}/${passportId || ""}`, + reportInCountry: (employeeId: string, reportId?: string) => + `employee/report-in-country-${employeeId}/${reportId || ""}`, }, product: { img: (productId: string, name?: string) => `product/img-${productId}/${name || ""}`,