Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
class DataBase @Inject constructor() {
private val realmLock = RealmLock()
//Home feed items
private fun getFeedItem(id: String): HomeFeedItem? {
return realmActions.getRealm()
.where<HomeFeedItem>().equalTo("_id", id).findFirst()
override fun deleteHomeFeedItem(id: String) {
realmActions.transaction {
val homeFeedItem = getFeedItem(id)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment