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

Commit fa259dd

Browse files
kananbchkeita
authored andcommitted
Add onefuzz service version to job created events (#3504)
1 parent 15603fb commit fa259dd

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/ApiService/ApiService/Functions/Jobs.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ private async Task<HttpResponseData> Post(HttpRequestData req, FunctionContext c
8383
"job");
8484
}
8585

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

src/ApiService/ApiService/OneFuzzTypes/Events.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ TaskConfig Config
124124
public record EventJobCreated(
125125
Guid JobId,
126126
JobConfig Config,
127-
StoredUserInfo? UserInfo
127+
StoredUserInfo? UserInfo,
128+
string OneFuzzVersion
128129
) : BaseEvent();
129130

130131

0 commit comments

Comments
 (0)