refactor: use helper

This commit is contained in:
Methapon Metanipat 2024-09-13 17:03:46 +07:00
parent 3394ff0caa
commit 77739da154
4 changed files with 29 additions and 93 deletions

View file

@ -67,8 +67,8 @@ export const fileLocation = {
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 || ""}`,
inCountryNotice: (employeeId: string, noticeId?: string) =>
`employee/in-country-notice-${employeeId}/${noticeId || ""}`,
},
product: {
img: (productId: string, name?: string) => `product/img-${productId}/${name || ""}`,