diff --git a/csharp/App/Backend/DataTypes/Methods/Session.cs b/csharp/App/Backend/DataTypes/Methods/Session.cs index c0c49c79a..0d622fa7a 100644 --- a/csharp/App/Backend/DataTypes/Methods/Session.cs +++ b/csharp/App/Backend/DataTypes/Methods/Session.cs @@ -176,7 +176,13 @@ public static class SessionMethods if (user is null || user.UserType == 0) return false; var action = Db.GetActionById(actionId); - + if (action.TestingMode) + { + var installation = Db.GetInstallationById(action.InstallationId); + installation.TestingMode = false; + installation.Apply(Db.Update); + WebsocketManager.InformWebsocketsForInstallation(action.InstallationId); + } Db.Delete(action); Console.WriteLine("---------------Deleted the Action in the database-----------------");