Browse Source

Extract _id from Populated revision

Shun Miyazawa 2 years ago
parent
commit
bfe8252c1d
1 changed files with 1 additions and 1 deletions
  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;
       return true;
     }
     }
 
 
-    const revision = this.latestRevision || this.revision;
+    const revision = this.latestRevision || this.revision._id;
     // comparing ObjectId with string
     // comparing ObjectId with string
     // eslint-disable-next-line eqeqeq
     // eslint-disable-next-line eqeqeq
     if (revision != previousRevision) {
     if (revision != previousRevision) {