Explorar o código

BugFix: search.syncBookmarkChanged method

Yuki Takei %!s(int64=7) %!d(string=hai) anos
pai
achega
1fe43f81f5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;