Forgot to declare before using

This commit is contained in:
Skylar Grant 2024-08-15 09:48:26 -04:00
parent 024d5d1058
commit 9f42cc6240
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ export class Communicator {
init(state) { init(state) {
// Connect to the MQTT Broker // Connect to the MQTT Broker
this.client = mqtt.connect(config.mqtt.address); const this.client = mqtt.connect(config.mqtt.address);
const { client } = this; const { client } = this;
client.on('connect', () => { client.on('connect', () => {