Skip to content

Commit

Permalink
fix: lowercase camera name in mqtt topics (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakowenko committed Nov 24, 2021
1 parent 98d7f2a commit 57e605b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/src/util/mqtt.util.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ module.exports.subscribe = () => {
module.exports.recognize = (data) => {
try {
if (!MQTT || !MQTT.HOST) return;
const { matches, misses, unknown, camera } = data;
const { matches, misses, unknown } = data;
const camera = data.camera.toLowerCase();
const hasUnknown = unknown && Object.keys(unknown).length;

const configData = JSON.parse(JSON.stringify(data));
Expand Down

0 comments on commit 57e605b

Please sign in to comment.