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

Commit

Permalink
Merge pull request #1087 from cocoa-mhlw/fix/add_idempotent_key_to_id…
Browse files Browse the repository at this point in the history
…_of_event

add idemopolent key to eventlog id
  • Loading branch information
cocoa-dev006 authored Jul 22, 2022
2 parents 3cf252a + bda43a2 commit 8f658c9
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 8f658c9

Please sign in to comment.