yusuketk %!s(int64=7) %!d(string=hai) anos
pai
achega
5bb6b8224c
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  1. 1 3
      src/server/models/page.js

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

@@ -300,9 +300,7 @@ module.exports = function(crowi) {
     const newTags = [newTagsName]; // [TODO] listing requested Tags on client side
 
     // get tags relate this page
-    const relatedTags = await PageTagRelation.find({
-      relatedPage: page._id
-    }).populate('relatedTag').select('-_id relatedTag');
+    const relatedTags = await PageTagRelation.find({relatedPage: page._id}).populate('relatedTag').select('-_id relatedTag');
 
     // unlink relations
     const unlinkTags = relatedTags.filter(tag => !newTags.includes(tag.relatedTag.name));