Просмотр исходного кода

Added a private member modifier

Taichi Masuyama 3 лет назад
Родитель
Сommit
c191bf7cbe
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      packages/app/src/server/service/page.ts

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

@@ -3383,12 +3383,13 @@ class PageService {
   }
 
   /**
+   * @private
    * This method receives the same arguments as the PageService.create method does except for the added type '{ grantedUsers?: ObjectIdLike[] }'.
    * This additional value is used to determine the grantedUser of the page to be created by system.
    * !!This method does not run isGrantNormalized method to validate grant. Run it before use this method if necessary.!!
    * !!This is because it is not expected to use this method when the grant validation is required.!!
    */
-  async forceCreateBySystem(path: string, body: string, options: PageCreateOptions & { grantedUsers?: ObjectIdLike[] }): Promise<PageDocument> {
+  private async forceCreateBySystem(path: string, body: string, options: PageCreateOptions & { grantedUsers?: ObjectIdLike[] }): Promise<PageDocument> {
     const Page = mongoose.model('Page') as unknown as PageModel;
 
     const isV5Compatible = this.crowi.configManager.getConfig('crowi', 'app:isV5Compatible');