Explorar o código

Extract _id from Populated revision

Shun Miyazawa %!s(int64=2) %!d(string=hai) anos
pai
achega
bfe8252c1d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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) {