Skip to content

Commit 1573cb9

Browse files
committed
test fix (should deprecate anyway)
1 parent 3185a15 commit 1573cb9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/thinx/influx.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,13 @@ module.exports = class InfluxConnector {
6969

7070
/* used only by test spec */
7171
queryOwner(measurement, owner_id, callback) {
72-
/* seems to break the test, owner_id should be "placeholder"
72+
73+
console.log("queryOwner TEST with owner_id:", owner_id);
74+
7375
if (!/^[a-zA-Z0-9_]+$/.test(measurement)) {
7476
throw new Error('Invalid input');
7577
}
76-
*/
78+
7779
this.influxdb.query(`SELECT mean("value") AS "mean_value" FROM "stats"."autogen"."${measurement}" WHERE "owner_id"=$owner_id`, {
7880
bind: {
7981
owner_id: owner_id

0 commit comments

Comments
 (0)