Skip to content

Commit

Permalink
Merge pull request #93 from coronasafe/preset-query
Browse files Browse the repository at this point in the history
fix preset query
  • Loading branch information
mathew-alex authored Sep 7, 2023
2 parents a0c9437 + 64894da commit b562fb4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/automation/autoDataExtractor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand Down
2 changes: 1 addition & 1 deletion src/automation/helper/getMonitorCoordinates.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const getMonitorCoordinates = async (bedId) => {
try {
const preset = await prisma.preset.findFirst({
where: {
bedId,
bed: { externalId: bedId },
deleted: false,
},
});
Expand Down

0 comments on commit b562fb4

Please sign in to comment.