Made a mistake

Accidentally locked BE watch items to only BEm characters. I have modified it to also include DiM characters in the BE.
This commit is contained in:
Nacho 2025-08-06 01:31:18 +02:00
parent f96f00e05a
commit dd1a62d184
3 changed files with 5 additions and 5 deletions

View File

@ -193,10 +193,10 @@ interface UserCharacterDao {
JOIN Card d ON d.id = c.dimId
JOIN Sprite s ON s.id = c.spriteId
LEFT JOIN Adventure a ON a.characterId = uc.id
WHERE d.isBEm = 1
WHERE uc.characterType = "BEDevice"
"""
)
suspend fun getBEBemCharacters(): List<CharacterDtos.CharacterWithSprites>
suspend fun getBECharacters(): List<CharacterDtos.CharacterWithSprites>
@Query(
"""

View File

@ -48,7 +48,7 @@ fun ChooseCharacterScreen(
selectedItem = storageRepository.getItem(itemId)
when (selectedItem?.itemType) {
ItemType.BEITEM -> {
characterList.value = storageRepository.getBEBEmCharacters()
characterList.value = storageRepository.getBECharacters()
}
ItemType.VBITEM -> {
characterList.value = storageRepository.getVBCharacters()

View File

@ -50,8 +50,8 @@ class StorageRepository (
return db.adventureDao().getAdventureCharacters()
}
suspend fun getBEBEmCharacters(): List<CharacterDtos.CharacterWithSprites> {
return db.userCharacterDao().getBEBemCharacters()
suspend fun getBECharacters(): List<CharacterDtos.CharacterWithSprites> {
return db.userCharacterDao().getBECharacters()
}
suspend fun getVBCharacters(): List<CharacterDtos.CharacterWithSprites> {