Sfoglia il codice sorgente

Extract _id from Populated revision

Shun Miyazawa 2 anni fa
parent
commit
bfe8252c1d
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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) {