Browse Source

no need meta data condition

ryoji-s 2 years ago
parent
commit
9d7525e4c9
1 changed files with 2 additions and 2 deletions
  1. 2 2
      apps/app/src/server/service/page.ts

+ 2 - 2
apps/app/src/server/service/page.ts

@@ -347,8 +347,8 @@ class PageService {
       const notEmptyClosestAncestor = await Page.findNonEmptyClosestAncestor(page.path);
       const notEmptyClosestAncestor = await Page.findNonEmptyClosestAncestor(page.path);
       creatorId = notEmptyClosestAncestor.creator;
       creatorId = notEmptyClosestAncestor.creator;
     }
     }
-    const isDeletable = await this.canDeletePromise(page.path, creatorId, user, false);
-    const isAbleToDeleteCompletely = await this.canDeleteCompletelyPromise(page.path, creatorId, user, false); // use normal delete config
+    const isDeletable = this.canDelete(page.path, creatorId, user, false);
+    const isAbleToDeleteCompletely = this.canDeleteCompletely(page.path, creatorId, user, false); // use normal delete config
 
 
     return {
     return {
       data: page,
       data: page,