浏览代码

fix: typo on vhost var

ntorga 4 月之前
父节点
当前提交
e945a5ac56
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/domain/useCase/createSslPair.go

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

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