فهرست منبع

fix lint error

ryosei-f 2 ماه پیش
والد
کامیت
592f0a7b05
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      apps/app/src/server/service/file-uploader/utils/headers.ts

+ 2 - 2
apps/app/src/server/service/file-uploader/utils/headers.ts

@@ -35,7 +35,7 @@ const determineDisposition = (
  * Factory function to generate content headers.
  * This approach avoids creating a class instance for each call, improving memory efficiency.
  */
-export const createContentHeaders = (attachment: IAttachmentDocument, opts?: { inline?: boolean }): ContentHeader[] => {
+export const createContentHeaders = (attachment: IAttachmentDocument, _opts?: { inline?: boolean }): ContentHeader[] => {
   const headers: ContentHeader[] = [];
 
   // Content-Type
@@ -52,7 +52,7 @@ export const createContentHeaders = (attachment: IAttachmentDocument, opts?: { i
   });
 
   // Content-Disposition
-  const disposition = determineDisposition(attachment.fileFormat, opts);
+  const disposition = determineDisposition(attachment.fileFormat);
   headers.push({
     field: 'Content-Disposition',
     value: `${disposition};filename*=UTF-8''${encodeURIComponent(attachment.originalName)}`,