mirror of
https://github.com/jellyfin/jellyfin-android.git
synced 2026-10-26 16:45:26 +00:00
Use transaction for queued downloads query
This commit is contained in:
1 parent
6be3652bdc
commit
0f3230ffe8
1 file changed
+1
@@ -21,6 +21,7 @@ interface DownloadDao {
|
||||
@Query("SELECT * FROM download ORDER BY created_at DESC")
|
||||
fun getAllDownloadsWithFiles(): Flow<List<DownloadFiles>>
|
||||
|
||||
@Transaction
|
||||
@Query("SELECT * FROM download WHERE status = 'QUEUED' OR status = 'DOWNLOADING' ORDER BY created_at ASC")
|
||||
fun getQueuedDownloads(): List<DownloadFiles>
|
||||
|
||||
|
||||
Reference in new issue
Block a user