From 7379dfa248078aaf0f6f472507886a75696ec2de Mon Sep 17 00:00:00 2001 From: Daniel Gyulai Date: Thu, 19 Nov 2020 21:33:42 +0100 Subject: [PATCH] Bugfix in Update iamge handling --- CoviDok/Data/MySQL/MySqlCaseHandler.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/CoviDok/Data/MySQL/MySqlCaseHandler.cs b/CoviDok/Data/MySQL/MySqlCaseHandler.cs index 9499502..34aeeb3 100644 --- a/CoviDok/Data/MySQL/MySqlCaseHandler.cs +++ b/CoviDok/Data/MySQL/MySqlCaseHandler.cs @@ -94,6 +94,7 @@ namespace CoviDok.Data.MySQL string[] forbidden = { "Updates" }; PropertyCopier.Copy(Case, c, forbidden); context.Updates.Add(update); + await context.SaveChangesAsync(); foreach (string ImageId in update.Images) { Image image = new Image