|
|
@ -43,7 +43,6 @@ function checkWriteApi(influxDb, options){
|
|
|
|
.catch((err) => {
|
|
|
|
.catch((err) => {
|
|
|
|
logger.error("Could not get writeApi:");
|
|
|
|
logger.error("Could not get writeApi:");
|
|
|
|
logger.error(`Error [${err.code}]:`, err.message);
|
|
|
|
logger.error(`Error [${err.code}]:`, err.message);
|
|
|
|
if(err.code == "not found") logger.error("No write-permission?");
|
|
|
|
|
|
|
|
reject();
|
|
|
|
reject();
|
|
|
|
}).then((res) => {
|
|
|
|
}).then((res) => {
|
|
|
|
logger.debug("Writing ok");
|
|
|
|
logger.debug("Writing ok");
|
|
|
|