chore(release): first stable release #45

Merged
devitq merged 134 commits from develop into main 2026-05-23 07:28:37 +00:00
2 changed files with 5 additions and 7 deletions
Showing only changes of commit 22025326e7 - Show all commits
@@ -110,13 +110,11 @@ class FilmLibraryController(
getFilmLibraryUseCase.getLibrary( getFilmLibraryUseCase.getLibrary(
GetFilmLibraryQuery(userId = userId), GetFilmLibraryQuery(userId = userId),
) )
}.getOrElse { exception -> }.onFailure { exception ->
if (exception is EntityNotFoundException) { if (exception !is EntityNotFoundException) {
null
} else {
throw exception throw exception
} }
} }.getOrNull()
val allFilms = getAllFilmsUseCase.getAll() val allFilms = getAllFilmsUseCase.getAll()
@@ -59,7 +59,7 @@ class FilmControllerSearchTest {
} }
@Test @Test
fun `search returns empty body when title is missing`() { fun `search returns 404 when title is not found`() {
val title = "Unknown Title" val title = "Unknown Title"
every { searchFilmByTitleUseCase.searchByTitle(title) } returns null every { searchFilmByTitleUseCase.searchByTitle(title) } returns null
@@ -68,7 +68,7 @@ class FilmControllerSearchTest {
.get("/api/films/search") { .get("/api/films/search") {
param("title", title) param("title", title)
}.andExpect { }.andExpect {
status { isOk() } status { isNotFound() }
content { string("") } content { string("") }
} }