Selaa lähdekoodia

remove userHomepage.parent == null block

ryoji-s 2 vuotta sitten
vanhempi
sitoutus
ea8e514794
1 muutettua tiedostoa jossa 0 lisäystä ja 6 poistoa
  1. 0 6
      apps/app/src/server/service/page.ts

+ 0 - 6
apps/app/src/server/service/page.ts

@@ -2058,12 +2058,6 @@ class PageService {
       throw new Error(msg);
       throw new Error(msg);
     }
     }
 
 
-    if (userHomepage.parent == null) {
-      const msg = 'user homepage parent is not found.';
-      logger.error(msg);
-      throw new Error(msg);
-    }
-
     const shouldUseV4Process = this.shouldUseV4Process(userHomepage);
     const shouldUseV4Process = this.shouldUseV4Process(userHomepage);
 
 
     const ids = [userHomepage._id];
     const ids = [userHomepage._id];