ソースを参照

refact: using "dto" as DTO name instead "loginDto" in Authentication's service layer GenerateJwtWithCredentials method

Matheus Marques Polillo 1 年間 前
コミット
c743b70149
1 ファイル変更2 行追加2 行削除
  1. 2 2
      src/presentation/service/authentication.go

+ 2 - 2
src/presentation/service/authentication.go

@@ -40,7 +40,7 @@ func (service AuthService) GenerateJwtWithCredentials(
 		return NewServiceOutput(UserError, err.Error())
 	}
 
-	loginDto := dto.NewLogin(username, password, ipAddress)
+	dto := dto.NewLogin(username, password, ipAddress)
 
 	authQueryRepo := authInfra.AuthQueryRepo{}
 	authCmdRepo := authInfra.AuthCmdRepo{}
@@ -50,7 +50,7 @@ func (service AuthService) GenerateJwtWithCredentials(
 		authQueryRepo,
 		authCmdRepo,
 		accQueryRepo,
-		loginDto,
+		dto,
 	)
 	if err != nil {
 		return NewServiceOutput(InfraError, err.Error())