Просмотр исходного кода

Fix read git action config returing 404

jnfrati 4 лет назад
Родитель
Сommit
e1fe85a493
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      api/server/handlers/release/update_git_action_config.go

+ 1 - 1
api/server/handlers/release/update_git_action_config.go

@@ -49,7 +49,7 @@ func (c *UpdateGitActionConfigHandler) ServeHTTP(w http.ResponseWriter, r *http.
 		c.HandleAPIError(w, r, apierrors.NewErrInternal(err))
 	}
 
-	actionConfig, err := c.Repo().GitActionConfig().ReadGitActionConfig(release.ID)
+	actionConfig, err := c.Repo().GitActionConfig().ReadGitActionConfig(release.GitActionConfig.ID)
 
 	if err != nil {
 		if err == gorm.ErrRecordNotFound {