Skip to content

Commit

Permalink
v1.3.1
Browse files Browse the repository at this point in the history
- remove ECMAScript 2020 expression to support older NodeJS versions
  • Loading branch information
matthias-range-ais committed Jul 7, 2021
1 parent 0c96fb9 commit 4695aeb
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file modified .gitignore
Binary file not shown.
2 changes: 1 addition & 1 deletion Storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ module.exports = class Storage {
column: "timestamp",
value: function (item) {
// calculate julian date
return (new Date(item.timestamp ?? new Date())).getTime() / 86400000 + 2440587.5;
return (new Date(item.timestamp ? item.timestamp : new Date())).getTime() / 86400000 + 2440587.5;
}
},
{
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ais_automation/node-red-contrib-eqcloud-monitoring",
"version": "1.3.0",
"version": "1.3.1",
"node-red": {
"nodes": {
"Monitoring": "Monitoring.js"
Expand Down

0 comments on commit 4695aeb

Please sign in to comment.