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

Commit

Permalink
add idemopolent key to eventlog id
Browse files Browse the repository at this point in the history
  • Loading branch information
cocoa-dev006 committed Jul 22, 2022
1 parent 877950c commit bda43a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Covid19Radar.Api/V1EventLog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public async Task<IActionResult> RunAsync(
continue;
}

string id = ByteArrayUtils.ToHexString(sha256.ComputeHash(Encoding.ASCII.GetBytes(eventLog.ClearText)));
string id = ByteArrayUtils.ToHexString(sha256.ComputeHash(Encoding.ASCII.GetBytes(submissionParameter.IdempotencyKey + eventLog.ClearText)));

var eventLogModel = new EventLogModel(
eventLog.HasConsent,
Expand Down

0 comments on commit bda43a2

Please sign in to comment.