Skip to content

Commit

Permalink
fix, nodeiD fireprobability?
Browse files Browse the repository at this point in the history
  • Loading branch information
Fruittips committed Nov 27, 2023
1 parent 8649aab commit 6ce5bef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fire-cloud/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ async function connectAndSubscribe() {
const rowId = data[0].id;
const lambdaRes = await invokeAnalytics(rowId, temperature, flameSensorValue);

const nodeId = lambdaRes.node_id;
const fireProbability = fireData.fire_probability;
const nodeId = messageJson.id;
const fireProbability = lambdaRes.fire_probability;

if (fireProbability === null) {
console.log("lambda function failed to calculate fire probability");
Expand Down

0 comments on commit 6ce5bef

Please sign in to comment.