@transitive-sdk/clickhouse 0.4.1 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -435,7 +435,7 @@ class ClickHouse {
435
435
  // registerMqttTopicForStorage
436
436
  return rows.map(row => {
437
437
  row.Payload = row.Payload ? JSON.parse(row.Payload) : null;
438
- row.Timestamp = new Date(row.Timestamp);
438
+ row.Timestamp = new Date(`${row.time}Z`);
439
439
  row.OrgId = row.TopicParts[0];
440
440
  row.DeviceId = row.TopicParts[1];
441
441
  row.Scope = row.TopicParts[2];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transitive-sdk/clickhouse",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "A tiny ClickHouse utility class for use in the Transitive framework.",
5
5
  "homepage": "https://transitiverobotics.com",
6
6
  "repository": {
@@ -470,6 +470,7 @@ describe('ClickHouse', function() {
470
470
  agg: 'avg',
471
471
  limit: 2 * ROWS,
472
472
  });
473
+ console.log(rows[0]);
473
474
  assert.equal(rows.length, 10000);
474
475
  assertTimelimit(ROWS / 1000);
475
476
  });