diff --git a/STDatabase/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/database/controllers/UploadController.kt b/STDatabase/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/database/controllers/UploadController.kt index 35dfe374..e0907960 100644 --- a/STDatabase/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/database/controllers/UploadController.kt +++ b/STDatabase/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/database/controllers/UploadController.kt @@ -125,7 +125,7 @@ class UploadController(private val realmProvider: RealmProvider) { return query("${UploadSessionDB::uuid.name} == '$uuid'").first() } - fun TypedRealm.getLastUploadQuery(): RealmSingleQuery { + private fun TypedRealm.getLastUploadQuery(): RealmSingleQuery { return query().first() } //endregion