Ensure searchables with tags are saved to searchable table
This commit is contained in:
parent
110a49c7c8
commit
f5d46f254c
@ -92,6 +92,7 @@ internal class CustomAttributesRepositoryImpl(
|
|||||||
override fun setTags(searchable: Searchable, tags: List<String>) {
|
override fun setTags(searchable: Searchable, tags: List<String>) {
|
||||||
val dao = appDatabase.customAttrsDao()
|
val dao = appDatabase.customAttrsDao()
|
||||||
scope.launch {
|
scope.launch {
|
||||||
|
favoritesRepository.save(searchable)
|
||||||
dao.setTags(searchable.key, tags.map {
|
dao.setTags(searchable.key, tags.map {
|
||||||
CustomTag(it).toDatabaseEntity(searchable.key)
|
CustomTag(it).toDatabaseEntity(searchable.key)
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user