Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Commit

Permalink
Add onefuzz service version to job created events
Browse files Browse the repository at this point in the history
  • Loading branch information
kananb committed Sep 20, 2023
1 parent c7a9827 commit 49a59ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ApiService/ApiService/Functions/Jobs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ private async Task<HttpResponseData> Post(HttpRequestData req, FunctionContext c
"job");
}

await _context.Events.SendEvent(new EventJobCreated(job.JobId, job.Config, job.UserInfo));
await _context.Events.SendEvent(new EventJobCreated(job.JobId, job.Config, job.UserInfo, _context.ServiceConfiguration.OneFuzzVersion));
return await RequestHandling.Ok(req, JobResponse.ForJob(job, taskInfo: null));
}

Expand Down
3 changes: 2 additions & 1 deletion src/ApiService/ApiService/OneFuzzTypes/Events.cs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ TaskConfig Config
public record EventJobCreated(
Guid JobId,
JobConfig Config,
StoredUserInfo? UserInfo
StoredUserInfo? UserInfo,
string OneFuzzVersion
) : BaseEvent();


Expand Down

0 comments on commit 49a59ef

Please sign in to comment.