zamis 5 năm trước cách đây
mục cha
commit
a630734180
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  1. 1 2
      src/server/service/page.js

+ 1 - 2
src/server/service/page.js

@@ -97,7 +97,7 @@ class PageService {
 
 
 
 
   async completelyDeletePage(pageData, user, options = {}) {
   async completelyDeletePage(pageData, user, options = {}) {
-
+    this.validateCrowi();
     let pageEvent;
     let pageEvent;
     // init event
     // init event
     if (this.crowi != null) {
     if (this.crowi != null) {
@@ -106,7 +106,6 @@ class PageService {
       pageEvent.on('update', pageEvent.onUpdate);
       pageEvent.on('update', pageEvent.onUpdate);
     }
     }
 
 
-    this.validateCrowi();
     const { _id, path } = pageData;
     const { _id, path } = pageData;
     const socketClientId = options.socketClientId || null;
     const socketClientId = options.socketClientId || null;