فهرست منبع

fix function name and comment

yohei0125 3 سال پیش
والد
کامیت
db4879e511
2فایلهای تغییر یافته به همراه2 افزوده شده و 3 حذف شده
  1. 1 2
      packages/app/src/server/crowi/index.js
  2. 1 1
      packages/app/src/server/service/page-operation.ts

+ 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.
  * Execute functions that should be run after the express server is ready.
- * Functions here does not block the
  */
  */
 Crowi.prototype.asyncAfterExpressServerReady = async function() {
 Crowi.prototype.asyncAfterExpressServerReady = async function() {
   if (this.pageOperationService != null) {
   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
    * run programs that should be executed only after the service is ready
    */
    */
-  async afterServiceReady(): Promise<void> {
+  async afterExpressServerReady(): Promise<void> {
     try {
     try {
       // execute rename operation
       // execute rename operation
       await this.executeAllRenameOperationBySystem();
       await this.executeAllRenameOperationBySystem();