mirror of
https://github.com/SecurityBrewery/catalyst.git
synced 2025-12-13 02:32:50 +01:00
Check input schema (#33)
This commit is contained in:
@@ -38,7 +38,7 @@ func (s *Service) GetJob(ctx context.Context, id string) (*model.JobResponse, er
|
||||
return s.database.JobGet(ctx, id)
|
||||
}
|
||||
|
||||
func (s *Service) UpdateJob(ctx context.Context, id string, job *model.Job) (doc *model.JobResponse, err error) {
|
||||
func (s *Service) UpdateJob(ctx context.Context, id string, job *model.JobUpdate) (doc *model.JobResponse, err error) {
|
||||
defer s.publishRequest(ctx, err, "UpdateJob", jobResponseID(doc))
|
||||
return s.database.JobUpdate(ctx, id, job)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user