Skip to content

Commit

Permalink
Merge pull request #3955 from Bnyro/master
Browse files Browse the repository at this point in the history
Make watch history and positions deletion function suspend
  • Loading branch information
Bnyro authored Jun 8, 2023
2 parents b047c3c + 9c6c60b commit dcebf06
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ interface WatchHistoryDao {
suspend fun delete(watchHistoryItem: WatchHistoryItem)

@Query("DELETE FROM watchHistoryItem WHERE videoId = :id")
fun deleteByVideoId(id: String)
suspend fun deleteByVideoId(id: String)

@Query("DELETE FROM watchHistoryItem")
suspend fun deleteAll()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ interface WatchPositionDao {
suspend fun insertAll(watchPositions: List<WatchPosition>)

@Query("DELETE FROM watchPosition WHERE videoId = :id")
fun deleteByVideoId(id: String)
suspend fun deleteByVideoId(id: String)

@Query("DELETE FROM watchPosition")
suspend fun deleteAll()
Expand Down

0 comments on commit dcebf06

Please sign in to comment.