diff --git a/src/automation/autoDataExtractor.js b/src/automation/autoDataExtractor.js index 17f5b8c..599c95d 100644 --- a/src/automation/autoDataExtractor.js +++ b/src/automation/autoDataExtractor.js @@ -75,6 +75,7 @@ const getSanitizedData = (data) => { const extractData = async (camParams, bedId) => { const coordinates = await getMonitorCoordinates(bedId); + console.log("Moving to coordinates: ", coordinates); await CameraUtils.absoluteMove({ camParams, ...coordinates }); const snapshotUrl = await CameraUtils.getSnapshotUri({ camParams }); diff --git a/src/automation/helper/getMonitorCoordinates.js b/src/automation/helper/getMonitorCoordinates.js index f51bc91..8eb7740 100644 --- a/src/automation/helper/getMonitorCoordinates.js +++ b/src/automation/helper/getMonitorCoordinates.js @@ -6,7 +6,7 @@ export const getMonitorCoordinates = async (bedId) => { try { const preset = await prisma.preset.findFirst({ where: { - bedId, + bed: { externalId: bedId }, deleted: false, }, });