mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 22:30:30 +05:30
Merge pull request #3955 from Bnyro/master
Make watch history and positions deletion function suspend
This commit is contained in:
commit
dcebf0682b
@ -26,7 +26,7 @@ interface WatchHistoryDao {
|
|||||||
suspend fun delete(watchHistoryItem: WatchHistoryItem)
|
suspend fun delete(watchHistoryItem: WatchHistoryItem)
|
||||||
|
|
||||||
@Query("DELETE FROM watchHistoryItem WHERE videoId = :id")
|
@Query("DELETE FROM watchHistoryItem WHERE videoId = :id")
|
||||||
fun deleteByVideoId(id: String)
|
suspend fun deleteByVideoId(id: String)
|
||||||
|
|
||||||
@Query("DELETE FROM watchHistoryItem")
|
@Query("DELETE FROM watchHistoryItem")
|
||||||
suspend fun deleteAll()
|
suspend fun deleteAll()
|
||||||
|
@ -21,7 +21,7 @@ interface WatchPositionDao {
|
|||||||
suspend fun insertAll(watchPositions: List<WatchPosition>)
|
suspend fun insertAll(watchPositions: List<WatchPosition>)
|
||||||
|
|
||||||
@Query("DELETE FROM watchPosition WHERE videoId = :id")
|
@Query("DELETE FROM watchPosition WHERE videoId = :id")
|
||||||
fun deleteByVideoId(id: String)
|
suspend fun deleteByVideoId(id: String)
|
||||||
|
|
||||||
@Query("DELETE FROM watchPosition")
|
@Query("DELETE FROM watchPosition")
|
||||||
suspend fun deleteAll()
|
suspend fun deleteAll()
|
||||||
|
Loading…
Reference in New Issue
Block a user