Skip to content

Commit

Permalink
🐛 Analysis created in transaction. (#729)
Browse files Browse the repository at this point in the history
Analysis created in a transaction. More efficient and prevents partial
reports.

Signed-off-by: Jeff Ortel <[email protected]>
  • Loading branch information
jortel authored Jul 17, 2024
1 parent 0b2b186 commit 3ea1d8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/analysis.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3ea1d8c

Please sign in to comment.