From 8fc713eb54854d08a417d2bdfcce0bec8971fa2b Mon Sep 17 00:00:00 2001 From: Cam Date: Sun, 19 May 2024 12:26:30 +0200 Subject: [PATCH] fix simulation id --- Sync.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Sync.cs b/Sync.cs index cc95160..aa96d33 100644 --- a/Sync.cs +++ b/Sync.cs @@ -354,9 +354,10 @@ private static async Task GetTenantSimulationUsers(GraphServiceClient GraphClien string id = $"{SimulationId}-{userSimDetail.SimulationUser?.UserId}"; // Add the table item - tableActionQueue_SimulationUsers.Enqueue(new TableTransactionAction(TableTransactionActionType.UpdateReplace, new TableEntity("SimulationUsers", id) + tableActionQueue_SimulationUsers.Enqueue(new TableTransactionAction(TableTransactionActionType.UpdateReplace, new TableEntity("SimulationUsers", SimulationId) { {"SimulationUser_Id", id}, + {"SimulationId", SimulationId}, {"SimulationUser_UserId", userSimDetail.SimulationUser?.UserId}, {"SimulationUser_Email", userSimDetail.SimulationUser?.Email}, {"CompromisedDateTime", userSimDetail.CompromisedDateTime},