Skip to content

Commit

Permalink
never encode channel in json
Browse files Browse the repository at this point in the history
  • Loading branch information
nicpottier committed Aug 20, 2017
1 parent 5b6fea8 commit 9694228
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backends/rapidpro/msg.go
Original file line number Diff line number Diff line change
Expand Up @@ -356,9 +356,9 @@ type DBMsg struct {
QueuedOn_ time.Time `json:"queued_on" db:"queued_on"`
SentOn_ time.Time `json:"sent_on" db:"sent_on"`

Channel_ courier.Channel
WorkerToken_ queue.WorkerToken
AlreadyWritten_ bool
Channel_ courier.Channel `json:"-"`
WorkerToken_ queue.WorkerToken `json:"-"`
AlreadyWritten_ bool `json:"-"`
}

func (m *DBMsg) Channel() courier.Channel { return m.Channel_ }
Expand Down

0 comments on commit 9694228

Please sign in to comment.