Rename to oldTopicFtsEntities

Change-Id: I234ecf3b50b8c327d919d0fc4a0d489e5101f690
pull/1268/head
Jaehwa Noh 1 week ago
parent ce95b9eefc
commit 33fb12e837

@ -57,9 +57,9 @@ internal class DefaultSearchContentsRepository @Inject constructor(
topicDao.getOneOffTopicEntities().forEach { topicEntity ->
val topicFtsEntities = topicFtsDao.getFtsEntitiesById(topicEntity.id)
val oldTopicFtsEntities = topicFtsDao.getFtsEntitiesById(topicEntity.id)
val size = topicFtsEntities.size
val size = oldTopicFtsEntities.size
if (size == 0) {
topicFtsDao.insert(topicEntity.asFtsEntity())
return@forEach

Loading…
Cancel
Save