Skip to content

Commit

Permalink
as: Instantiate uplink normalized path from webhook template
Browse files Browse the repository at this point in the history
  • Loading branch information
johanstokking committed Aug 29, 2022
1 parent a1afa2a commit 32827cb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/applicationserver/io/web/templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ func (f webhookTemplateField) toPB() *ttnpb.ApplicationWebhookTemplateField {

type webhookTemplatePaths struct {
UplinkMessage *string `yaml:"uplink-message,omitempty"`
UplinkNormalized *string `yaml:"uplink-normalized,omitempty"`
JoinAccept *string `yaml:"join-accept,omitempty"`
DownlinkAck *string `yaml:"downlink-ack,omitempty"`
DownlinkNack *string `yaml:"downlink-nack,omitempty"`
Expand Down Expand Up @@ -288,6 +289,7 @@ func (t webhookTemplate) toPB() *ttnpb.ApplicationWebhookTemplate {
Fields: t.pbFields(),
CreateDownlinkApiKey: t.CreateDownlinkAPIKey,
UplinkMessage: t.pathToMessage(t.Paths.UplinkMessage),
UplinkNormalized: t.pathToMessage(t.Paths.UplinkNormalized),
JoinAccept: t.pathToMessage(t.Paths.JoinAccept),
DownlinkAck: t.pathToMessage(t.Paths.DownlinkAck),
DownlinkNack: t.pathToMessage(t.Paths.DownlinkNack),
Expand Down

0 comments on commit 32827cb

Please sign in to comment.