From ceb72f9c501aafb0092f7edf8ff61f47801e34e3 Mon Sep 17 00:00:00 2001 From: Methapon Metanipat Date: Wed, 11 Sep 2024 09:42:05 +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 66148c1..c376eea 100644 --- a/src/utils/minio.ts +++ b/src/utils/minio.ts @@ -59,6 +59,11 @@ export const fileLocation = { customer: { img: (customerId: string, name?: string) => `customer/img-${customerId}/${name || ""}`, }, + employee: { + img: (employeeId: string, name?: string) => `employee/img-${employeeId}/${name || ""}`, + attachment: (employeeId: string, name?: string) => + `employee/attachment-${employeeId}/${name || ""}`, + }, product: { img: (productId: string, name?: string) => `product/img-${productId}/${name || ""}`, },