Parcourir la source

fix function name and comment

yohei0125 il y a 3 ans
Parent
commit
db4879e511

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

@@ -150,11 +150,10 @@ Crowi.prototype.init = async function() {
 
 /**
  * Execute functions that should be run after the express server is ready.
- * Functions here does not block the
  */
 Crowi.prototype.asyncAfterExpressServerReady = async function() {
   if (this.pageOperationService != null) {
-    await this.pageOperationService.afterServiceReady();
+    await this.pageOperationService.afterExpressServerReady();
   }
 };
 

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

@@ -32,7 +32,7 @@ class PageOperationService {
   /**
    * run programs that should be executed only after the service is ready
    */
-  async afterServiceReady(): Promise<void> {
+  async afterExpressServerReady(): Promise<void> {
     try {
       // execute rename operation
       await this.executeAllRenameOperationBySystem();