Procházet zdrojové kódy

update js docs and todo comment

ryoji-s před 2 roky
rodič
revize
82ca63b1e6

+ 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.
    *