ソースを参照

add private and type to fns

yohei0125 3 年 前
コミット
374628399f
1 ファイル変更3 行追加3 行削除
  1. 3 3
      packages/app/src/server/service/page-operation.ts

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

@@ -17,7 +17,7 @@ class PageOperationService {
   }
 
   // TODO: Remove this code when resuming feature is implemented
-  async init() {
+  async init(): Promise<void> {
     const {
       Duplicate, Delete, DeleteCompletely, Revert, NormalizeParent,
     } = PageActionType;
@@ -25,12 +25,12 @@ class PageOperationService {
     await PageOperation.deleteByActionTypes(types);
   }
 
-  async onAfterInit():Promise<void> {
+  async onAfterInit(): Promise<void> {
     await this.executeAllRenameOperationBySystem();
   }
 
   // execute renameSubOperation on every page operation order by ASC
-  async executeAllRenameOperationBySystem(): Promise<void> {
+  private async executeAllRenameOperationBySystem(): Promise<void> {
     const Page = this.crowi.model('Page');
 
     const pageOps = await PageOperation.find({ actionType: PageActionType.Rename, actionStage: PageActionStage.Sub }).sort({ createdAt: 1 });