Skip to content

Commit

Permalink
msg catalog tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
rasoro committed Oct 10, 2023
1 parent 2fca910 commit aefab8e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions core/handlers/msg_catalog_created.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ func handleMsgCatalogCreated(ctx context.Context, rt *runtime.Runtime, tx *sqlx.
"header": event.Msg.Header(),
"products": event.Msg.Products(),
"urn": event.Msg.URN(),
"action": event.Msg.Action(),
}).Debug("msg created event")

// messages in messaging flows must have urn id set on them, if not, go look it up
Expand Down
7 changes: 4 additions & 3 deletions core/handlers/msg_catalog_created_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,19 @@ func TestMsgCatalogCreated(t *testing.T) {
testdata.Cathy: []flows.Action{
actions.NewSendMsgCatalog(
handlers.NewActionUUID(),
"", "Some products", "",
"", "Some products", "", "View Products",
[]string{
"9f526c6f-b2cb-4457-8048-a7f1dc101e50",
"eb2305cc-bf39-43ad-a069-bbbfb6401acc",
},

true,
),
},
testdata.George: []flows.Action{
actions.NewSendMsgCatalog(
handlers.NewActionUUID(),
"Select The Service", "", "",
"Select The Service", "", "", "View Products",
[]string{
"cbd9ba07-7156-406e-8006-5b697d18d091",
"63157bd2-6f94-4dbb-b394-ea4eb07ce156",
Expand All @@ -55,7 +56,7 @@ func TestMsgCatalogCreated(t *testing.T) {
),
},
testdata.Bob: []flows.Action{
actions.NewSendMsgCatalog(handlers.NewActionUUID(), "No URNs", "", "", nil, false),
actions.NewSendMsgCatalog(handlers.NewActionUUID(), "No URNs", "", "", "View Products", nil, false),
},
},
Msgs: handlers.ContactMsgMap{
Expand Down

0 comments on commit aefab8e

Please sign in to comment.