Skip to content
Snippets Groups Projects
Commit aacdbfac authored by Jonas Leder's avatar Jonas Leder
Browse files

fix client application if no db is set

parent 1dc8f6ef
No related branches found
No related tags found
No related merge requests found
Pipeline #54604 passed
......@@ -26,7 +26,7 @@ var messagePubHandlerBoiler mqtt.MessageHandler = func(client mqtt.Client, msg m
if os.Getenv("OUTPUT_FILE_NAME_RAW") != "" {
dumpRawData(string(msg.Payload()), os.Getenv("OUTPUT_FILE_NAME_RAW"))
}
if os.Getenv("OUTPUT_DATABSE") != "" {
if os.Getenv("OUTPUT_DATABSE") != "" || os.Getenv("CLIENT_USE_SERVER") == "true" {
task := types.Task{
Date: time.Now().UTC(),
Data: string(msg.Payload()),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment