itizawa 5 лет назад
Родитель
Сommit
affc83b54c

+ 0 - 1
src/client/js/components/PageHistory/PageRevisionList.jsx

@@ -86,7 +86,6 @@ class PageRevisionList extends React.Component {
         previousRevision = revision; // if it is the first revision, show full text as diff text
       }
 
-
       const hasDiff = revision.hasDiffToPrev !== false; // set 'true' if undefined for backward compatibility
       const isContiguousNodiff = !hasDiff && !hasDiffPrev;
 

+ 0 - 22
src/server/service/search-delegator/elasticsearch.js

@@ -352,11 +352,6 @@ class ElasticsearchDelegator {
     return this.updateOrInsertPages(() => Page.findById(pageId));
   }
 
-  updateOrInsertPageById(pageIds) {
-    const Page = mongoose.model('Page');
-    return this.updateOrInsertPages(() => Page.find({ _id: { $in: pageIds } }));
-  }
-
   /**
    * @param {function} queryFactory factory method to generate a Mongoose Query instance
    */
@@ -956,23 +951,6 @@ class ElasticsearchDelegator {
     return this.updateOrInsertPageById(page._id);
   }
 
-  async syncPagesUpdated(pages, user) {
-    logger.debug('SearchClient.syncPageUpdated', page.path);
-
-    // delete if page should not indexed
-    if (!this.shouldIndexed(page)) {
-      try {
-        await this.deletePages([page]);
-      }
-      catch (err) {
-        logger.error('deletePages:ES Error', err);
-      }
-      return;
-    }
-
-    return this.updateOrInsertPageById(page._id);
-  }
-
   async syncPageDeleted(page, user) {
     logger.debug('SearchClient.syncPageDeleted', page.path);