Skip to content

Commit

Permalink
Merge pull request #139 from Zarvhos/master
Browse files Browse the repository at this point in the history
fix: isNull undefined and unused
  • Loading branch information
riclolsen authored May 1, 2024
2 parents 461a724 + 85f5a21 commit fd62764
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mqtt-sparkplug/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1773,6 +1773,7 @@ function queueMetric(metric, deviceLocator, isBirth, templateName) {
valueJson = {},
type = 'digital',
invalid = false,
isNull = false,
timestamp,
timestampGood = true,
catalogProperties = {},
Expand Down Expand Up @@ -2014,7 +2015,7 @@ function queueMetric(metric, deviceLocator, isBirth, templateName) {
timeTagAtSource: new Date(timestamp),
timeTagAtSourceOk: timestampGood,
asduAtSource: type,
isNull: metric?.isNull === true,
isNull: isNull,
...catalogProperties,
})
}
Expand Down

0 comments on commit fd62764

Please sign in to comment.