From 297abc796a9ea5cd4cb52e36390765a0b46bfb45 Mon Sep 17 00:00:00 2001 From: Louis CAD Date: Thu, 2 Jan 2025 17:33:55 +0100 Subject: [PATCH] fix: Register DownloadManagerUniqueId into Realm database --- .../multiplatform_swisstransfer/database/RealmProvider.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/STDatabase/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/database/RealmProvider.kt b/STDatabase/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/database/RealmProvider.kt index 145bbdb8..e9b0da92 100644 --- a/STDatabase/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/database/RealmProvider.kt +++ b/STDatabase/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/database/RealmProvider.kt @@ -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 @@ -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()