Przeglądaj źródła

remove image population

yusuketk 5 lat temu
rodzic
commit
aab2095351

+ 2 - 2
packages/growi-plugin-attachment-refs/src/server/routes/refs.js

@@ -89,7 +89,7 @@ module.exports = (crowi) => {
         page: page._id,
         originalName: fileName,
       })
-      .populate({ path: 'creator', select: User.USER_PUBLIC_FIELDS, populate: User.IMAGE_POPULATION });
+      .populate({ path: 'creator', select: User.USER_PUBLIC_FIELDS });
 
     // not found
     if (attachment == null) {
@@ -183,7 +183,7 @@ module.exports = (crowi) => {
     }
 
     const attachments = await query
-      .populate({ path: 'creator', select: User.USER_PUBLIC_FIELDS, populate: User.IMAGE_POPULATION })
+      .populate({ path: 'creator', select: User.USER_PUBLIC_FIELDS })
       .exec();
 
     res.status(200).send({ attachments });