浏览代码

fix(syncing-server): logs on request backup handler

Karol Sójko 1 年之前
父节点
当前提交
ba050681f7
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      packages/syncing-server/src/Domain/Handler/EmailBackupRequestedEventHandler.ts

+ 2 - 2
packages/syncing-server/src/Domain/Handler/EmailBackupRequestedEventHandler.ts

@@ -34,8 +34,6 @@ export class EmailBackupRequestedEventHandler implements DomainEventHandlerInter
     if (this.secondaryItemRepository) {
       await this.requestEmailWithBackupFile(event, this.secondaryItemRepository)
     }
-
-    this.logger.info(`Email with backup requested for user ${event.payload.userUuid}`)
   }
 
   private async requestEmailWithBackupFile(
@@ -108,5 +106,7 @@ export class EmailBackupRequestedEventHandler implements DomainEventHandlerInter
         }),
       )
     }
+
+    this.logger.info(`Email with backup requested for user ${event.payload.userUuid}`)
   }
 }