~bigbes/core-go: 33562018

database.WithTx: rollback if func returns error

Previously, this only rolled back if the called function panicked. This
updates it to also roll back if the called function returns an error.

Drew DeVault <sir@cmpwn.com> — 2020-11-26 15:48:32 UTC

Commit 33562018fec2053d30ebe5e9fa5f313223d18c3cview raw patch

Parent(s): 31fc9fce

2 changed file(s)

FileStatus+
database/middleware.go M +5 -1
webhooks/legacy_test.go M +2 -1