Fix CharacterSheet AC alteration

This commit is contained in:
Thomas Andres Gomez 2023-09-26 16:01:17 +02:00
parent b36cb9b601
commit a97a1b1ce0
5 changed files with 47 additions and 17 deletions

View file

@ -60,14 +60,6 @@ class LauncherViewModel @Inject constructor(
_error.tryEmit("Quest fail to update")
}
}
val alteration = async {
try {
alterationRepository.fetchAlterationSheet()
alterationRepository.fetchStatusSheet()
} catch (exception: Exception) {
_error.tryEmit("Alteration fail to update")
}
}
val characterSheet = async {
try {
characterSheetRepository.fetchCharacterSheet()
@ -75,7 +67,21 @@ class LauncherViewModel @Inject constructor(
_error.tryEmit("CharacterSheet fail to update")
}
}
awaitAll(lexicon, location, quest, alteration, characterSheet)
val alteration = async {
try {
alterationRepository.fetchAlterationSheet()
} catch (exception: Exception) {
_error.tryEmit("Alteration lexicon fail to update")
}
}
val status = async {
try {
alterationRepository.fetchStatusSheet()
} catch (exception: Exception) {
_error.tryEmit("Alteration status fail to update")
}
}
awaitAll(lexicon, location, quest, alteration, status, characterSheet)
val action = async {
try {