Commit 7e0f6e49 authored by neop's avatar neop
Browse files

correct credential order

parent 737d983f
......@@ -81,8 +81,8 @@ public class Main {
InfluxDBClientOptions.builder()
.url(Main.influxdb_uri)
.authenticateToken(String.format("%s:%s",
System.getenv("SENSOR2GRAPH_INFLUXDB_PASS"),
System.getenv("SENSOR2GRAPH_INFLUXDB_USER")
System.getenv("SENSOR2GRAPH_INFLUXDB_USER"),
System.getenv("SENSOR2GRAPH_INFLUXDB_PASS")
).toCharArray())
.bucket(Main.influxdb_database_name)
.org("-")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment