We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3185a15 commit 1573cb9Copy full SHA for 1573cb9
lib/thinx/influx.js
@@ -69,11 +69,13 @@ module.exports = class InfluxConnector {
69
70
/* used only by test spec */
71
queryOwner(measurement, owner_id, callback) {
72
- /* seems to break the test, owner_id should be "placeholder"
+
73
+ console.log("queryOwner TEST with owner_id:", owner_id);
74
75
if (!/^[a-zA-Z0-9_]+$/.test(measurement)) {
76
throw new Error('Invalid input');
77
}
- */
78
79
this.influxdb.query(`SELECT mean("value") AS "mean_value" FROM "stats"."autogen"."${measurement}" WHERE "owner_id"=$owner_id`, {
80
bind: {
81
owner_id: owner_id
0 commit comments