Skip to content

Commit

Permalink
ShowTools2: make show delete methods suspend.
Browse files Browse the repository at this point in the history
  • Loading branch information
UweTrottmann committed Feb 16, 2024
1 parent 49d9f32 commit 0e8e024
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ interface SgEpisode2Helper {
}

@Query("DELETE FROM sg_episode WHERE series_id = :showId")
fun deleteEpisodesOfShow(showId: Long): Int
suspend fun deleteEpisodesOfShow(showId: Long): Int
}

data class SgEpisode2WithShow(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ interface SgSeason2Helper {
fun updateSeasonCounters(seasonCountUpdate: SgSeason2CountUpdate)

@Query("DELETE FROM sg_season WHERE series_id = :showId")
fun deleteSeasonsOfShow(showId: Long): Int
suspend fun deleteSeasonsOfShow(showId: Long): Int
}

data class SgSeason2Numbers(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ interface SgShow2Helper {
fun deleteAllShows()

@Query("DELETE FROM sg_show WHERE _id = :showId")
fun deleteShow(showId: Long): Int
suspend fun deleteShow(showId: Long): Int

@Query("SELECT _id, series_tmdb_id, series_tvdb_id FROM sg_show WHERE series_syncenabled = 0")
fun getHexagonMergeNotCompleted(): List<SgShow2Ids>
Expand Down

0 comments on commit 0e8e024

Please sign in to comment.