zamis 5 anni fa
parent
commit
634bd96d86
1 ha cambiato i file con 1 aggiunte e 3 eliminazioni
  1. 1 3
      src/server/service/page.js

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

@@ -36,11 +36,9 @@ class PageService {
   async removeAllAttachments(pageIds) {
     const Attachment = this.crowi.model('Attachment');
     const { attachmentService } = this.crowi;
-
     const attachments = await Attachment.find({ page: pageIds });
-    attachmentService.removeAttachment(attachments);
 
-    return;
+    return attachmentService.removeAttachment(attachments);
   }
 
   async duplicate(page, newPagePath, user) {