mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-07-13 17:51:57 +00:00
commit
31861ff301
2 changed files with 2 additions and 1 deletions
|
|
@ -229,6 +229,7 @@ class RealmInventoryLocalRepository(realm: Realm) : RealmContentLocalRepository(
|
|||
"hatchingPotions" -> HatchingPotion::class.java
|
||||
"food" -> Food::class.java
|
||||
"quests" -> QuestContent::class.java
|
||||
"special" -> SpecialItem::class.java
|
||||
else -> Egg::class.java
|
||||
}
|
||||
return RxJavaBridge.toV3Flowable(realm.where(itemClass).equalTo("key", key).findFirstAsync().asFlowable<RealmObject>()
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ open class SpecialItems : RealmObject() {
|
|||
ownedItems?.forEach {
|
||||
if (!it.isManaged) {
|
||||
it.userID = userId
|
||||
it.itemType = "eggs"
|
||||
it.itemType = "special"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue