Skip to content

Commit

Permalink
Merge pull request #1077 from ShouraySolanki/dial_publisher_issue
Browse files Browse the repository at this point in the history
Issue #KN-000 fix: publisher coming as null
  • Loading branch information
pallakartheekreddy authored Jun 4, 2024
2 parents f6fb77d + 887b4dd commit f18e8f3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ object DIALManager {
batch.put("config", mergedConfig.mapValues(_.toString).asJava)
batch.put("status", Int.box(0) )
batch.put("channel", channel)
batch.put("publisher", publisher.get)
batch.put("publisher", publisher.getOrElse(""))
batch.put("created_on", Long.box(System.currentTimeMillis()))

val updateReq = new Request()
Expand Down Expand Up @@ -429,7 +429,7 @@ object DIALManager {
event.put("dialcodes", dialCodes)
val storageMap = new util.HashMap[String, Any]()
storageMap.put("container", "dial")
storageMap.put("path", if (publisher.nonEmpty) channel+"/"+ publisher.get +"/" else s"$channel/")
storageMap.put("path", if (publisher.nonEmpty) channel+"/"+ publisher.getOrElse("") +"/" else s"$channel/")
storageMap.put("filename", Option(rspObj.get("node_id")).get + "_" + System.currentTimeMillis())
event.put("storage", storageMap)
event.put("config", config.toMap.asJava)
Expand Down

0 comments on commit f18e8f3

Please sign in to comment.