Răsfoiți Sursa

delete console

zamis 5 ani în urmă
părinte
comite
b1e08e2c7c
1 a modificat fișierele cu 0 adăugiri și 15 ștergeri
  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());
   }