mirror of
https://github.com/SecurityBrewery/catalyst.git
synced 2026-04-20 01:31:49 +02:00
Check input schema (#33)
This commit is contained in:
@@ -47,14 +47,12 @@ func (h *busService) handleJob(automationMsg *bus.JobMsg) {
|
||||
return
|
||||
}
|
||||
|
||||
if _, err := h.db.JobUpdate(ctx, automationMsg.ID, &model.Job{
|
||||
Automation: job.Automation,
|
||||
Container: &containerID,
|
||||
Origin: job.Origin,
|
||||
Output: job.Output,
|
||||
Log: &logs,
|
||||
Payload: job.Payload,
|
||||
Status: job.Status,
|
||||
if _, err := h.db.JobUpdate(ctx, automationMsg.ID, &model.JobUpdate{
|
||||
Container: &containerID,
|
||||
Running: true,
|
||||
Output: job.Output,
|
||||
Log: &logs,
|
||||
Status: job.Status,
|
||||
}); err != nil {
|
||||
log.Println(err)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user