more refactors :)

This commit is contained in:
2026-02-08 20:52:58 +11:00
parent d038f7a42d
commit fa3b8e3982
10 changed files with 28 additions and 50 deletions

View File

@@ -48,7 +48,7 @@ func WithTxFailSilently(
) error {
fnc := func(ctx context.Context, tx bun.Tx) (bool, error) {
err := fn(ctx, tx)
return err != nil, err
return err == nil, err
}
_, err := withTx(ctx, conn, fnc, true)
return err