Skip to content

Commit

Permalink
Make IdentityHandler.Update use transaction
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Lucidi <[email protected]>
  • Loading branch information
mansam committed Jun 20, 2024
1 parent 07db50d commit d01066c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/identity.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func (h IdentityHandler) AddRoutes(e *gin.Engine) {
routeGroup.GET(IdentitiesRoot+"/", h.setDecrypted, h.List)
routeGroup.POST(IdentitiesRoot, h.Create)
routeGroup.GET(IdentityRoot, h.setDecrypted, h.Get)
routeGroup.PUT(IdentityRoot, h.Update)
routeGroup.PUT(IdentityRoot, h.Update, Transaction)
routeGroup.DELETE(IdentityRoot, h.Delete)
}

Expand Down

0 comments on commit d01066c

Please sign in to comment.