Browse Source

Extract _id from Populated revision

Shun Miyazawa 2 năm trước cách đây
mục cha
commit
bfe8252c1d
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      apps/app/src/server/models/obsolete-page.js

+ 1 - 1
apps/app/src/server/models/obsolete-page.js

@@ -149,7 +149,7 @@ export const getPageSchema = (crowi) => {
       return true;
     }
 
-    const revision = this.latestRevision || this.revision;
+    const revision = this.latestRevision || this.revision._id;
     // comparing ObjectId with string
     // eslint-disable-next-line eqeqeq
     if (revision != previousRevision) {