fix(ocme): fixed the camera routes

This commit is contained in:
2025-03-25 18:55:57 -05:00
parent ceaa25f31e
commit 51267f5202
2 changed files with 26 additions and 16 deletions

View File

@@ -18,8 +18,15 @@ export const triggerScanner = async () => {
}
const scannerData = JSON.parse(setting[0]?.value);
let data = scannerData.filter((n: any) => n.name === "wrapper1");
let port = data[0].port;
console.log(data);
if (data.length === 0) {
return {
success: false,
message: "Looks like the scanner is missing.",
};
}
let port = data[0]?.port;
createLog(
"info",
"wrapperScanner",