takeru0001 5 лет назад
Родитель
Сommit
1feb14e3e3
1 измененных файлов с 1 добавлено и 1 удалено
  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);
     }));