Explorar o código

delete console , fix variant

zamis %!s(int64=5) %!d(string=hai) anos
pai
achega
91f2eb8466
Modificáronse 1 ficheiros con 2 adicións e 5 borrados
  1. 2 5
      src/server/service/page.js

+ 2 - 5
src/server/service/page.js

@@ -44,12 +44,9 @@ class PageService {
 
 
     const attachments = await Attachment.find({ page: { $in: pageIds } });
     const attachments = await Attachment.find({ page: { $in: pageIds } });
 
 
-    const hoge = await attachmentService.removeAttachment(attachments);
-    console.log('===============');
-    console.log(hoge);
-    console.log('===============');
+    return attachmentService.removeAttachment(attachments);
+
 
 
-    return hoge;
     // const promises = attachments.map(async(attachment) => {
     // const promises = attachments.map(async(attachment) => {
     //   return attachmentService.removeAttachment(attachment._id);
     //   return attachmentService.removeAttachment(attachment._id);
     // });
     // });