mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-08 02:30:14 +08:00
[MQTT] Use existing fields instead of creating new ones (Server)
This commit is contained in:
@@ -79,11 +79,9 @@ class Monitor extends BeanModel {
|
||||
pushToken: this.pushToken,
|
||||
notificationIDList,
|
||||
tags: tags,
|
||||
mqttPort: this.mqttPort,
|
||||
mqttUsername: this.mqttUsername,
|
||||
mqttTopic: this.mqttTopic,
|
||||
mqttSuccessMessage: this.mqttSuccessMessage
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -354,7 +352,7 @@ class Monitor extends BeanModel {
|
||||
} else if (this.type === "mqtt") {
|
||||
try {
|
||||
bean.msg = await mqttAsync(this.url, this.mqttTopic, this.mqttSuccessMessage, {
|
||||
mqttPort: this.mqttPort,
|
||||
mqttPort: this.port,
|
||||
mqttUsername: this.mqttUsername,
|
||||
mqttPassword: this.mqttPassword,
|
||||
interval: this.interval,
|
||||
|
Reference in New Issue
Block a user