Skip to content

Commit

Permalink
Removed unneeded query when retrieving episodes.
Browse files Browse the repository at this point in the history
  • Loading branch information
SamTV12345 committed Nov 20, 2023
1 parent 775e416 commit 9bc1a70
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/models/episode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,11 +204,6 @@ impl Episode {
.load::<(PodcastEpisode, Episode, Podcast)>(conn)
.map_err(map_db_error)?;

let _query_1 = &podcast_episodes
.inner_join(episodes.on(url.like(cleaned_url.concat("%"))))
.inner_join(podcast_table::table.on(podcast_table::id.eq(podcast_id)))
.filter(username.eq(username_to_find));

let mapped_watched_episodes = query
.iter()
.map(|e| PodcastWatchedEpisodeModelWithPodcastEpisode {
Expand Down

0 comments on commit 9bc1a70

Please sign in to comment.