We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa69ebd commit d6b7895Copy full SHA for d6b7895
backend/src/modules/broker/services/mqtt.service.ts
@@ -256,14 +256,14 @@ export class MqttService implements OnModuleInit {
256
}
257
258
if (shouldTrigger(String(parsedPayload.from), 6)) {
259
- const deviceData =
+ try {
260
+ const deviceData =
261
await this.deviceService.getDeviceInfoByEncryptedId(
262
String(parsedPayload.from),
263
'',
264
true,
265
);
266
- try {
267
await this.deviceService.editDevice(
268
{
269
deviceId: String(deviceData?._id),
0 commit comments