Skip to content

Commit

Permalink
Add omitempty
Browse files Browse the repository at this point in the history
  • Loading branch information
cdupuis committed Jul 8, 2022
1 parent 21f2819 commit 4a8c56c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion message.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ type MessageSender struct {

type Transaction struct {
Data []interface{} `edn:"data"`
OrderingKey string `edn:"ordering-key"`
OrderingKey string `edn:"ordering-key,omitempty"`
}

type TransactBody struct {
Expand Down
2 changes: 1 addition & 1 deletion status.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
)

type StatusBody struct {
Status Status `edn:"status"`
Status Status `edn:"status,omitempty"`
}

func SendStatus(ctx EventContext, status Status) error {
Expand Down

0 comments on commit 4a8c56c

Please sign in to comment.