ministryofjustice / offenders-api

REST API Offenders microservice
https://offenders.service.justice.gov.uk
2 stars 1 forks source link

Wrap create and update operations in transactions #143

Closed cesidio closed 7 years ago

cesidio commented 7 years ago

When we create an identity for a new offenders we need to create the offender and update the current identity of the offender, in case validation fails, we want to rollback the operations.

The same goes when we update an identity and validation fails on the offender params.