Make metaData a map[string]string; Resolve explicitly

This commit is contained in:
Lou Knauer
2022-03-08 11:53:24 +01:00
parent 08d760361d
commit 9535c11dc4
10 changed files with 89 additions and 33 deletions

View File

@@ -285,12 +285,6 @@ func (api *RestApi) startJob(rw http.ResponseWriter, r *http.Request) {
return
}
req.RawResources, err = json.Marshal(req.Resources)
if err != nil {
handleError(fmt.Errorf("basically impossible: %w", err), http.StatusBadRequest, rw)
return
}
id, err := api.JobRepository.Start(&req)
if err != nil {
handleError(fmt.Errorf("insert into database failed: %w", err), http.StatusInternalServerError, rw)