Przeglądaj źródła

ensure not to include redirect when revert pages

Yuki Takei 5 lat temu
rodzic
commit
25a5f008eb
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/server/models/page.js

+ 1 - 1
src/server/models/page.js

@@ -1132,7 +1132,7 @@ module.exports = function(crowi) {
   };
   };
 
 
   pageSchema.statics.revertDeletedPageRecursively = async function(targetPage, user, options = {}) {
   pageSchema.statics.revertDeletedPageRecursively = async function(targetPage, user, options = {}) {
-    const findOpts = { includeRedirect: true, includeTrashed: true };
+    const findOpts = { includeTrashed: true };
     const result = await this.findListWithDescendants(targetPage.path, user, findOpts);
     const result = await this.findListWithDescendants(targetPage.path, user, findOpts);
     const pages = result.pages;
     const pages = result.pages;