Closed seth-schroeder closed 1 year ago
This is a subset of cambiatus/backend#306
Closes cambiatus/backend#304
Return 2 tuple errors to Oban. 4 tuple errors are generated when Multi.new is upstream of Repo.transaction.
Multi.new
Repo.transaction
Existing unit test coverage. They passed for me locally, after running mix format and mix credo.
mix format
mix credo
I am submitting two versions of this change. This PR addresses the error handling. The next PR will have that, and it will include the credo check.
Please note
This is a subset of cambiatus/backend#306
What issue does this PR close
Closes cambiatus/backend#304
Changes Proposed ( a list of new changes introduced by this PR)
Return 2 tuple errors to Oban. 4 tuple errors are generated when
Multi.new
is upstream ofRepo.transaction
.How to test ( a list of instructions on how to test this PR)
Existing unit test coverage. They passed for me locally, after running
mix format
andmix credo
.Please note
I am submitting two versions of this change. This PR addresses the error handling. The next PR will have that, and it will include the credo check.