Skip to content

Commit

Permalink
Merge pull request #146 from numary/fix/empty-error-code
Browse files Browse the repository at this point in the history
omit empty error code on batch transaction response.
  • Loading branch information
gfyrag authored Feb 1, 2022
2 parents 3cf55db + 448ed8e commit 264e2f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/api/controllers/transaction_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,8 @@ func (ctl *TransactionController) PostTransactionsBatch(c *gin.Context) {
case ledger.ErrCommitError:
type TransactionError struct {
core.Transaction
ErrorCode string `json:"errorCode"`
ErrorMessage string `json:"errorMessage"`
ErrorCode string `json:"errorCode,omitempty"`
ErrorMessage string `json:"errorMessage,omitempty"`
}
results := make([]TransactionError, 0)
for _, tx := range ret {
Expand Down

0 comments on commit 264e2f8

Please sign in to comment.