feat: add file location for request and task

This commit is contained in:
Methapon2001 2024-12-04 11:32:58 +07:00
parent bbb78465c2
commit feb0c067fb

View file

@ -101,12 +101,15 @@ export const fileLocation = {
`quotation/payment-${quotationId}/${paymentId}/${name || ""}`,
},
request: {
attachment: (requestId: string, name?: string) =>
`request/attachment-${requestId}/${name || ""}`,
attachment: (requestId: string, step: number, name?: string) =>
`request/attachment-${requestId}-${step}/${name || ""}`,
},
institution: {
attachment: (institutionId: string, name?: string) =>
`institution/attachment-${institutionId}/${name || ""}`,
img: (institutionId: string, name?: string) => `institution/img-${institutionId}/${name || ""}`,
},
task: {
attachment: (taskId: string, name?: string) => `task/attachment-${taskId}/${name || ""}`,
},
};