getJetpacks
Retrieves a list of all jetpacks.
Return
A Flow emitting a list of Jetpack objects.
Samples
// Request a sync when fetching jetpacks
// TODO: This should be done in a more efficient way
syncManager.requestSync()
return flow {
val userId = preferencesDataSource.getUserIdOrThrow()
val jetpacks = localDataSource.getJetpacks(userId).map { it.mapToJetpacks() }
emitAll(jetpacks)
}Content copied to clipboard