Skip to content

Commit

Permalink
Fix PopularMovies database writing bug
Browse files Browse the repository at this point in the history
  • Loading branch information
herrbert74 committed Nov 2, 2024
1 parent ccf2ab1 commit d016e39
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class PopularMoviesDao @Inject constructor(
override suspend fun insertPopularMovies(movies: List<Movie>, page: Int) {
runCatchingUnit {
realm.write {
movies.map { copyToRealm(it.toPopularMoviesDbo(page), UpdatePolicy.ERROR) }
movies.map { copyToRealm(it.toPopularMoviesDbo(page), UpdatePolicy.ALL) }
}
}
}
Expand Down

0 comments on commit d016e39

Please sign in to comment.