fix: Fix Central Portal status checking

**Problem**
It's supposed to be POST but I'm usin g GET, which results in 500.
This commit is contained in:
Eugene Yokota 2025-05-18 12:18:18 -04:00
parent f698b7191b
commit ff6ea5570b
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ import scala.util.Try
// ThisBuild settings take lower precedence,
// but can be shared across the multi projects.
ThisBuild / version := {
val v = "1.10.11-SNAPSHOT"
val v = "1.11.0-SNAPSHOT"
nightlyVersion.getOrElse(v)
}
ThisBuild / version2_13 := "2.0.0-SNAPSHOT"

View File

@ -103,7 +103,7 @@ class SonaClient(reqTransform: Request => Request) extends AutoCloseable {
val req = Gigahorse
.url(s"${baseUrl}/publisher/status")
.addQueryString("id" -> deploymentId)
.get
.post("", StandardCharsets.UTF_8)
http.run(reqTransform(req), SonaClient.asPublisherStatus)
}