Sfoglia il codice sorgente

change method name and leave comment

yohei0125 4 anni fa
parent
commit
5c0e3b813d

+ 2 - 1
packages/app/src/server/crowi/index.js

@@ -682,7 +682,8 @@ Crowi.prototype.setupPageService = async function() {
   }
   if (this.pageOperationService == null) {
     this.pageOperationService = new PageOperationService(this);
-    await this.pageOperationService.initPageOperation();
+    // TODO: Remove this code when resuming feature is implemented
+    await this.pageOperationService.init();
   }
 };
 

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

@@ -14,7 +14,6 @@ class PageOperationService {
 
   // TODO: Remove this code when resuming feature is implemented
   async init():Promise<void> {
-    // TODO: Remove this code when resuming feature is implemented
     await PageOperation.deleteMany({});
   }