worker/server: fix manifest-id job status

The manifest by id job status type safe function
was failing due to the jobType check which was checking
for the wrong string.
This commit is contained in:
Gianluca Zuccarelli 2022-04-01 17:18:57 +01:00 committed by Tom Gundersen
parent b75cf30a05
commit ab98c66b9f

View file

@ -249,8 +249,8 @@ func (s *Server) ManifestJobStatus(id uuid.UUID, result *ManifestJobByIDResult)
return nil, nil, err
}
if jobType != "manifest-job-by-id" {
return nil, nil, fmt.Errorf("expected \"manifest-job-by-id\", found %q job instead", jobType)
if jobType != "manifest-id-only" {
return nil, nil, fmt.Errorf("expected \"manifest-id-only\", found %q job instead", jobType)
}
return status, deps, nil