Manager: actually include manager name in version API call

The API call `GetVersion` should return the Manager name, but it returned
the hard-coded application name `"Flamenco"` instead.
This commit is contained in:
Sybren A. Stüvel 2023-07-21 17:08:10 +02:00
parent ff2d24274c
commit ef68f71d54

View File

@ -25,7 +25,7 @@ func (f *Flamenco) GetVersion(e echo.Context) error {
return e.JSON(http.StatusOK, api.FlamencoVersion{
Version: appinfo.ExtendedVersion(),
Shortversion: appinfo.ApplicationVersion,
Name: appinfo.ApplicationName,
Name: f.config.Get().ManagerName,
Git: appinfo.ApplicationGitHash,
})
}