Fix CharacterSheet AC alteration
This commit is contained in:
parent
b36cb9b601
commit
a97a1b1ce0
5 changed files with 47 additions and 17 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue