Manager: fixed copy/paste typo in CheckBlenderExePath() (#104192)

The `toCheck` variable in `CheckBlenderExePath()` was initialized to `CheckSharedStoragePathJSONBody`, should be `CheckBlenderExePathJSONBody`.

Reviewed-on: https://projects.blender.org/studio/flamenco/pulls/104192
This commit is contained in:
MKRelax 2023-03-06 12:55:53 +01:00 committed by Sybren A. Stüvel
parent ea20e94e94
commit 7963ab5efd

View File

@ -221,7 +221,7 @@ func (f *Flamenco) FindBlenderExePath(e echo.Context) error {
func (f *Flamenco) CheckBlenderExePath(e echo.Context) error { func (f *Flamenco) CheckBlenderExePath(e echo.Context) error {
logger := requestLogger(e) logger := requestLogger(e)
var toCheck api.CheckSharedStoragePathJSONBody var toCheck api.CheckBlenderExePathJSONBody
if err := e.Bind(&toCheck); err != nil { if err := e.Bind(&toCheck); err != nil {
logger.Warn().Err(err).Msg("bad request received") logger.Warn().Err(err).Msg("bad request received")
return sendAPIError(e, http.StatusBadRequest, "invalid format") return sendAPIError(e, http.StatusBadRequest, "invalid format")