Publish send-to-device messages into correct JetStream subject

This commit is contained in:
Neil Alexander 2021-11-08 10:49:20 +00:00
parent 621dabcb34
commit d6229a3c9a
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -190,7 +190,7 @@ func (t *EDUServerInputAPI) sendToDeviceEvent(ise *api.InputSendToDeviceEvent) e
} }
if _, err = t.JetStream.PublishMsg(&nats.Msg{ if _, err = t.JetStream.PublishMsg(&nats.Msg{
Subject: t.OutputTypingEventTopic, Subject: t.OutputSendToDeviceEventTopic,
Data: eventJSON, Data: eventJSON,
}); err != nil { }); err != nil {
logrus.WithError(err).Error("sendToDevice failed t.Producer.SendMessage") logrus.WithError(err).Error("sendToDevice failed t.Producer.SendMessage")