diff --git a/src/formulate.app/Controllers/StoredDataController.cs b/src/formulate.app/Controllers/StoredDataController.cs index 90ba7f14..4128abeb 100644 --- a/src/formulate.app/Controllers/StoredDataController.cs +++ b/src/formulate.app/Controllers/StoredDataController.cs @@ -146,7 +146,7 @@ public object DeleteSubmission(DeleteSubmissionRequest request) var id = GuidHelper.GetGuid(request.GeneratedId); // Delete the submission. - using (var scope = ScopeProvider.CreateScope()) + using (var scope = ScopeProvider.CreateScope(autoComplete: true)) { scope.Database.Delete("FormulateSubmission", "GeneratedId", null, id); }