瀏覽代碼

delete console

zamis 5 年之前
父節點
當前提交
b1e08e2c7c
共有 1 個文件被更改,包括 0 次插入15 次删除
  1. 0 15
      src/server/service/attachment.js

+ 0 - 15
src/server/service/attachment.js

@@ -46,24 +46,9 @@ class AttachmentService {
   async removeAttachment(attachments) {
     const Attachment = this.crowi.model('Attachment');
     const { fileUploadService } = this.crowi;
-    // console.log(attachments);
-    console.log('===============');
-    console.log(attachments);
-    console.log('===============');
-
 
     await attachments.forEach(attachment => Attachment.findById(attachment._id));
-    console.log('===============');
-
-    console.log(attachments);
-    console.log('===============');
-
     await attachments.forEach(attachment => fileUploadService.deleteFile(attachment));
-    console.log('===============');
-    console.log(attachments);
-    console.log('===============');
-
-
     return attachments.forEach(attachment => attachment.remove());
   }