Переглянути джерело

change depl id type in request (#3357)

ianedwards 2 роки тому
батько
коміт
7bf704ef6b
1 змінених файлів з 2 додано та 2 видалено
  1. 2 2
      api/server/handlers/porter_app/validate.go

+ 2 - 2
api/server/handlers/porter_app/validate.go

@@ -18,7 +18,7 @@ import (
 )
 
 type ValidatePorterAppRequest struct {
-	DeploymentTargetID uint   `json:"deployment_target_id"`
+	DeploymentTargetID string `json:"deployment_target_id"`
 	AppName            string `json:"app_name"`
 	PorterYAMLBase64   string `json:"porter_yaml"`
 	LatestCommit       string `json:"latest_commit"`
@@ -84,7 +84,7 @@ func (c *ValidatePorterAppHandler) ServeHTTP(w http.ResponseWriter, r *http.Requ
 	// validate the app
 	validateRequest := connect.NewRequest(&porterv1.ValidatePorterAppRequest{
 		ProjectId:          int64(project.ID),
-		DeploymentTargetId: int64(request.DeploymentTargetID),
+		DeploymentTargetId: request.DeploymentTargetID,
 		Application:        target,
 	})