Explorar o código

Update page.js

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

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

@@ -26,8 +26,7 @@ class PageService {
     const Attachment = this.crowi.model('Attachment');
 
     const { attachmentService } = this.crowi;
-    const attachments = await Attachment.find({ page: pageIds });
-
+    const attachments = await Attachment.find({ page: { $in: pageIds } });
     return Promise.all([
       Bookmark.find({ page: { $in: pageIds } }).remove({}),
       Comment.find({ page: { $in: pageIds } }).remove({}),