Skip to content

Commit

Permalink
fix: Register DownloadManagerUniqueId into Realm database
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisCAD committed Jan 2, 2025
1 parent 2ddd3d9 commit 297abc7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ package com.infomaniak.multiplatform_swisstransfer.database
import com.infomaniak.multiplatform_swisstransfer.database.models.appSettings.AppSettingsDB
import com.infomaniak.multiplatform_swisstransfer.database.models.appSettings.EmailTokenDB
import com.infomaniak.multiplatform_swisstransfer.database.models.transfers.ContainerDB
import com.infomaniak.multiplatform_swisstransfer.database.models.transfers.DownloadManagerUniqueId
import com.infomaniak.multiplatform_swisstransfer.database.models.transfers.FileDB
import com.infomaniak.multiplatform_swisstransfer.database.models.transfers.TransferDB
import com.infomaniak.multiplatform_swisstransfer.database.models.upload.RemoteUploadFileDB
Expand Down Expand Up @@ -97,7 +98,7 @@ class RealmProvider(private val loadDataInMemory: Boolean = false) {
.build()

private fun realmTransfersConfiguration(userId: Int) = RealmConfiguration
.Builder(schema = setOf(TransferDB::class, ContainerDB::class, FileDB::class))
.Builder(schema = setOf(TransferDB::class, ContainerDB::class, FileDB::class, DownloadManagerUniqueId::class))
.name(transferRealmName(userId))
.deleteRealmDataIfNeeded()
.loadDataInMemoryIfNeeded()
Expand Down

0 comments on commit 297abc7

Please sign in to comment.