Skip to content

Commit 63e3fd5

Browse files
committed
fix: update route in RequestRecipePublicationTests
1 parent ce96eee commit 63e3fd5

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/main/scala/api/recipes/publicationRequests/GetAll.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ val getAll: ZServerEndpoint[GetAllEnv, Any] =
2222
.get
2323
.out(jsonBody[List[ModerationHistoryResponse]])
2424
.errorOut(oneOf(serverErrorVariant, recipeNotFoundVariant))
25-
.zSecuredServerLogic(moderationHistoryHandler)
25+
.zSecuredServerLogic(getAllHandler)
2626

27-
def moderationHistoryHandler(recipeId: RecipeId):
27+
private def getAllHandler(recipeId: RecipeId):
2828
ZIO[
2929
AuthenticatedUser & GetAllEnv,
3030
InternalServerError | RecipeNotFound,

src/test/scala/integration/api/recipes/RequestRecipePublicationTests.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import zio.test.*
1515

1616
object RequestRecipePublicationTests extends ZIOIntegrationTestSpec:
1717
private def endpointPath(recipeId: RecipeId): URL =
18-
URL(Path.root / "recipes" / recipeId.toString / "request-publication")
18+
URL(Path.root / "recipes" / recipeId.toString / "publication-requests")
1919

2020
private def requestRecipePublication(user: AuthenticatedUser, recipeId: RecipeId):
2121
RIO[Client, Response] =

0 commit comments

Comments
 (0)