diff options
Diffstat (limited to 'lib/rfq-last')
| -rw-r--r-- | lib/rfq-last/service.ts | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/lib/rfq-last/service.ts b/lib/rfq-last/service.ts index 02429b6a..433f4376 100644 --- a/lib/rfq-last/service.ts +++ b/lib/rfq-last/service.ts @@ -2987,16 +2987,15 @@ async function prepareEmailAttachments(rfqId: number, attachmentIds: number[]) { const isProduction = process.env.NODE_ENV === "production"; const fullPath = isProduction - - path.join( - process.cwd(), - `public`, - revision.filePath - ) - : path.join( - `${process.env.NAS_PATH}`, - revision.filePath - ); + ? path.join( + process.cwd(), + `public`, + revision.filePath + ) + : path.join( + `${process.env.NAS_PATH}`, + revision.filePath + ); const fileBuffer = await fs.readFile(fullPath); emailAttachments.push({ |
