mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 14:20:30 +05:30
Make watch history and positions deletion function suspend
This commit is contained in:
parent
b64a4861c5
commit
9c6c60b42d
@ -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()
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user