This commit is contained in:
machiav3lli
2021-12-24 15:13:07 +01:00
parent 066369e769
commit 88776cbe04
3 changed files with 3 additions and 3 deletions

View File

@@ -96,6 +96,7 @@ class SyncService : ConnectionService<SyncService.Binder>() {
}
}
// TODO fix sync (better management of repositories' ids
fun sync(request: SyncRequest) {
val ids = db.repositoryDao.all.mapNotNull { it.data }
.asSequence().filter { it.enabled }.map { it.id }.toList()