Ver Fonte

fix code

takeru0001 há 5 anos atrás
pai
commit
1feb14e3e3
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      src/server/models/page.js

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

@@ -1294,7 +1294,7 @@ module.exports = function(crowi) {
     // find manageable descendants
     const pages = await this.findManageableListWithDescendants(targetPage, user, options);
 
-    await Promise.all(pages.map((page) => {
+    Promise.allSettled(pages.map((page) => {
       const newPagePath = page.path.replace(pathRegExp, newPagePathPrefix);
       return this.rename(page, newPagePath, user, options);
     }));