Skip to content

Commit

Permalink
Merge pull request #963 from hmrc/BDOG-BAU
Browse files Browse the repository at this point in the history
BDOG-BAU fix deploy events pagination - param was not being replaced
  • Loading branch information
Shnick authored Nov 8, 2024
2 parents c87a534 + a063731 commit 1fdb836
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,10 @@ case class Pagination(
object Pagination:
def uriForPage(uri: String, page: Int): URI =
import sttp.model.Uri.UriContext
uri"$uri".addParam("page", page.toString).toJavaUri
val u = uri"$uri"
u.withParams(u.paramsMap ++ Map("page" -> page.toString)).toJavaUri // ensures existing page param is replaced



case class DeploymentTimelineEvent(
env : Environment,
Expand Down

0 comments on commit 1fdb836

Please sign in to comment.