From bda43a2632056be81e755b59f0cd0a72e55a8d7e Mon Sep 17 00:00:00 2001 From: cocoa-dev006 <93573337+cocoa-dev006@users.noreply.github.com> Date: Fri, 22 Jul 2022 14:58:48 +0900 Subject: [PATCH] add idemopolent key to eventlog id --- src/Covid19Radar.Api/V1EventLog.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Covid19Radar.Api/V1EventLog.cs b/src/Covid19Radar.Api/V1EventLog.cs index 40f99804f..9f4610715 100644 --- a/src/Covid19Radar.Api/V1EventLog.cs +++ b/src/Covid19Radar.Api/V1EventLog.cs @@ -127,7 +127,7 @@ public async Task 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,