Taichi Masuyama преди 4 години
родител
ревизия
9d594f0cb9
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      packages/app/src/server/service/page-grant.ts

+ 1 - 1
packages/app/src/server/service/page-grant.ts

@@ -348,7 +348,7 @@ class PageGrantService {
     const shouldIncludeNotMigratedPages = true;
     const shouldIncludeNotMigratedPages = true;
 
 
     const normalizedIds: ObjectIdLike[] = [];
     const normalizedIds: ObjectIdLike[] = [];
-    const notNormalizedPaths: string[] = [];
+    const notNormalizedPaths: string[] = []; // can be used to tell user which page failed to migrate
 
 
     await Promise.all(pageIds.map(async(pageId) => {
     await Promise.all(pageIds.map(async(pageId) => {
       const page = await Page.findById(pageId) as any | null;
       const page = await Page.findById(pageId) as any | null;