Browse Source

fix: typo on vhost var

ntorga 4 months ago
parent
commit
e945a5ac56
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/domain/useCase/createSslPair.go

+ 2 - 2
src/domain/useCase/createSslPair.go

@@ -16,7 +16,7 @@ func CreateSslPair(
 	activityRecordCmdRepo repository.ActivityRecordCmdRepo,
 	activityRecordCmdRepo repository.ActivityRecordCmdRepo,
 	createDto dto.CreateSslPair,
 	createDto dto.CreateSslPair,
 ) error {
 ) error {
-	vHostReadResponse, err := vhostQueryRepo.Read(dto.ReadVirtualHostsRequest{
+	vhostReadResponse, err := vhostQueryRepo.Read(dto.ReadVirtualHostsRequest{
 		Pagination: dto.PaginationUnpaginated,
 		Pagination: dto.PaginationUnpaginated,
 	})
 	})
 	if err != nil {
 	if err != nil {
@@ -25,7 +25,7 @@ func CreateSslPair(
 	}
 	}
 
 
 	existingVirtualHostHostnames := []valueObject.Fqdn{}
 	existingVirtualHostHostnames := []valueObject.Fqdn{}
-	for _, vhostEntity := range vHostReadResponse.VirtualHosts {
+	for _, vhostEntity := range vhostReadResponse.VirtualHosts {
 		if vhostEntity.Type == valueObject.VirtualHostTypeAlias {
 		if vhostEntity.Type == valueObject.VirtualHostTypeAlias {
 			continue
 			continue
 		}
 		}