Update: Replace entity's Product usage with database.entity's fully

This commit is contained in:
machiav3lli
2022-04-06 03:53:19 +02:00
parent 43180d2844
commit f33ccfd247
10 changed files with 86 additions and 69 deletions

View File

@ -458,8 +458,9 @@ class SyncService : ConnectionService<SyncService.Binder>() {
val repository = installedRepository.third!!
val productRepository = db.productDao.get(packageName)
.map { product -> Pair(product?.data!!, repository) }
.filterNotNull()
.filter { product -> product.repositoryId == repository.id }
.map { product -> Pair(product, repository) }
scope.launch {
Utils.startUpdate(