takeru0001 5 lat temu
rodzic
commit
1feb14e3e3
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

@@ -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);
     }));