Merge pull request #4 from HabitRPG/develop

fork update
This commit is contained in:
Alejandro Rios 2021-04-08 17:53:54 -05:00 committed by GitHub
commit 31861ff301
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -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>()

View file

@ -14,7 +14,7 @@ open class SpecialItems : RealmObject() {
ownedItems?.forEach {
if (!it.isManaged) {
it.userID = userId
it.itemType = "eggs"
it.itemType = "special"
}
}
}