zamis %!s(int64=5) %!d(string=hai) anos
pai
achega
634bd96d86
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  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) {