From 3ea1d8c3eabefa7b5458eef5e4eec09ece666877 Mon Sep 17 00:00:00 2001 From: Jeff Ortel Date: Wed, 17 Jul 2024 07:46:52 -0500 Subject: [PATCH] :bug: Analysis created in transaction. (#729) Analysis created in a transaction. More efficient and prevents partial reports. Signed-off-by: Jeff Ortel --- api/analysis.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/analysis.go b/api/analysis.go index 547040f52..03e98f845 100644 --- a/api/analysis.go +++ b/api/analysis.go @@ -89,7 +89,7 @@ func (h AnalysisHandler) AddRoutes(e *gin.Engine) { // Application routeGroup = e.Group("/") routeGroup.Use(Required("applications.analyses")) - routeGroup.POST(AppAnalysesRoot, h.AppCreate) + routeGroup.POST(AppAnalysesRoot, Transaction, h.AppCreate) routeGroup.GET(AppAnalysesRoot, h.AppList) routeGroup.GET(AppAnalysisRoot, h.AppLatest) routeGroup.GET(AppAnalysisReportRoot, h.AppLatestReport)