소스 검색

fix space

zamis 5 년 전
부모
커밋
c73f402ebc
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      src/server/service/attachment.js

+ 1 - 3
src/server/service/attachment.js

@@ -44,17 +44,15 @@ class AttachmentService {
   }
 
   async removeAttachment(attachments) {
-
     const { fileUploadService } = this.crowi;
     const attachmentsCollection = mongoose.connection.collection('attachments');
     const unorderAttachmentsBulkOp = attachmentsCollection.initializeUnorderedBulkOp();
+
     attachments.forEach((attachment) => {
       fileUploadService.deleteFiles(attachment);
       unorderAttachmentsBulkOp.find({ _id: attachment._id }).remove();
     });
-
     await unorderAttachmentsBulkOp.execute();
-
     return;
   }