Sfoglia il codice sorgente

BugFix: search.syncBookmarkChanged method

Yuki Takei 7 anni fa
parent
commit
1fe43f81f5
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/server/util/search.js

+ 1 - 1
src/server/util/search.js

@@ -786,7 +786,7 @@ SearchClient.prototype.syncPageDeleted = function(page, user) {
 SearchClient.prototype.syncBookmarkChanged = async function(pageId) {
   const Page = this.crowi.model('Page');
   const Bookmark = this.crowi.model('Bookmark');
-  const page = await Page.findPageById(pageId);
+  const page = await Page.findById(pageId);
   const bookmarkCount = await Bookmark.countByPageId(pageId);
 
   page.bookmarkCount = bookmarkCount;