We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ceb072e commit 5729226Copy full SHA for 5729226
internal/notifier/service/mqtt/mqtt.go
@@ -36,7 +36,7 @@ func NewMqttNotifier(config *config.Config) *MqttNotifier {
36
func (m *MqttNotifier) SendNotification(c context.Context, notification *nModel.Notification) error {
37
log := logging.FromContext(c)
38
39
- token := m.client.Publish(m.topic, 0, false, "testing").WaitTimeout(time.Second * 4)
+ token := m.client.Publish(m.topic, 0, false, notification.Text).WaitTimeout(time.Second * 4)
40
if token {
41
log.Info("Mqtt notification delivered")
42
return nil
0 commit comments