Przeglądaj źródła

Update apps/app/src/server/service/attachment.js

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Yuki Takei 10 miesięcy temu
rodzic
commit
2a2b7cb31b
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      apps/app/src/server/service/attachment.js

+ 1 - 1
apps/app/src/server/service/attachment.js

@@ -56,7 +56,7 @@ class AttachmentService {
       await fileUploadService.uploadAttachment(readStreamForCreateAttachmentDocument, attachment);
       await attachment.save();
 
-      const attachedHandlerPromises = this.attachHandlers.map(async(handler) => {
+      this.attachHandlers.forEach(async(handler) => {
         //  Creates a new stream for each operation instead of reusing the original stream.
         //  REASON: Node.js Readable streams cannot be reused after consumption.
         //  When a stream is piped or consumed, its internal state changes and the data pointers