mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-01-12 14:27:35 -08:00
Allow MQTT topic to have wildcards
This should fix https://github.com/louislam/uptime-kuma/issues/1669
This commit is contained in:
parent
c0fe669cd8
commit
558195ae6a
|
@ -101,11 +101,9 @@ class MqttMonitorType extends MonitorType {
|
|||
});
|
||||
|
||||
client.on("message", (messageTopic, message) => {
|
||||
if (messageTopic === topic) {
|
||||
client.end();
|
||||
clearTimeout(timeoutID);
|
||||
resolve(message.toString("utf8"));
|
||||
}
|
||||
client.end();
|
||||
clearTimeout(timeoutID);
|
||||
resolve(message.toString("utf8"));
|
||||
});
|
||||
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue