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

update js docs and todo comment

ryoji-s 2 лет назад
Родитель
Сommit
82ca63b1e6
2 измененных файлов с 2 добавлено и 2 удалено
  1. 2 0
      apps/app/src/server/events/user.ts
  2. 0 2
      apps/app/src/server/service/page.ts

+ 2 - 0
apps/app/src/server/events/user.ts

@@ -18,6 +18,8 @@ class UserEvent extends EventEmitter {
   async onActivated(user: IUserHasId): Promise<void> {
     const Page = this.crowi.model('Page');
     const userHomePagePath = `/user/${user.username}`;
+    // TODO: Delete user arg.
+    // see: https://redmine.weseek.co.jp/issues/124326
     let page = await Page.findByPath(userHomePagePath, user);
 
     if (page !== null && page.creator.toString() !== user._id.toString()) {

+ 0 - 2
apps/app/src/server/service/page.ts

@@ -1965,8 +1965,6 @@ class PageService {
   // TODO: Delete user arg.
   // see: https://redmine.weseek.co.jp/issues/124326
   /**
-   * Delete a user's homepage and its subpages completely by the system.
-   *
    * @description This function is intended to be used exclusively for forcibly deleting the user homepage by the system.
    * It should only be called from within the appropriate context and with caution as it performs a system-level operation.
    *