Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
rowanseymour committed Nov 25, 2019
1 parent deb4410 commit e5ffb00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion models/msgs.go
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ func NewOutgoingMsg(orgID OrgID, channel *Channel, contactID ContactID, out *flo
metadata["templating"] = out.Templating()
}
if out.Topic() != flows.NilMsgTopic {
metadata["topic"] = out.Topic()
metadata["topic"] = string(out.Topic())
}
m.Metadata = null.NewMap(metadata)
}
Expand Down
2 changes: 1 addition & 1 deletion models/msgs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func TestMsgs(t *testing.T) {
tx, err := db.BeginTxx(ctx, nil)
assert.NoError(t, err)

flowMsg := flows.NewMsgOut(tc.URN, assets.NewChannelReference(tc.ChannelUUID, "Test Channel"), tc.Text, tc.Attachments, tc.QuickReplies, nil, flows.NilMsgTopic)
flowMsg := flows.NewMsgOut(tc.URN, assets.NewChannelReference(tc.ChannelUUID, "Test Channel"), tc.Text, tc.Attachments, tc.QuickReplies, nil, tc.Topic)
msg, err := NewOutgoingMsg(orgID, tc.Channel, tc.ContactID, flowMsg, now)

if err == nil {
Expand Down

0 comments on commit e5ffb00

Please sign in to comment.