@transitive-sdk/clickhouse 0.5.1 → 0.5.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.
Files changed (2) hide show
  1. package/index.js +2 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -269,8 +269,8 @@ class ClickHouse {
269
269
 
270
270
  /** Add the given rows to the cache for batch-insertion to the given table */
271
271
  addToCache(table, rows) {
272
- this.rowCache[this.mqttHistoryTable] ||= [];
273
- this.rowCache[this.mqttHistoryTable].push(...rows);
272
+ this.rowCache[table] ||= [];
273
+ this.rowCache[table].push(...rows);
274
274
  }
275
275
 
276
276
  /** Function responsible fgor inserting all cached rows */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transitive-sdk/clickhouse",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "A tiny ClickHouse utility class for use in the Transitive framework.",
5
5
  "homepage": "https://transitiverobotics.com",
6
6
  "repository": {