Skip to content

Commit

Permalink
omit empty error code on batch transaction response.
Browse files Browse the repository at this point in the history
  • Loading branch information
gfyrag committed Feb 1, 2022
1 parent 3cf55db commit 448ed8e
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 448ed8e

Please sign in to comment.