Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Technical Debt : Migrate the code to use the new the CategoryRepository #3583

Merged
merged 4 commits into from
Oct 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import com.ivy.base.model.TransactionType
import com.ivy.base.time.TimeConverter
import com.ivy.base.time.TimeProvider
import com.ivy.data.db.dao.read.AccountDao
import com.ivy.data.db.dao.write.WriteCategoryDao
import com.ivy.data.db.dao.write.WritePlannedPaymentRuleDao
import com.ivy.data.model.AccountId
import com.ivy.data.model.Category
Expand Down Expand Up @@ -91,7 +90,6 @@ class TransactionsViewModel @Inject constructor(
private val calcTrnsIncomeExpenseAct: LegacyCalcTrnsIncomeExpenseAct,
private val exchangeAct: ExchangeAct,
private val transactionRepository: TransactionRepository,
private val categoryWriter: WriteCategoryDao,
private val plannedPaymentRuleWriter: WritePlannedPaymentRuleDao,
private val transactionMapper: TransactionMapper,
private val tagRepository: TagRepository,
Expand Down Expand Up @@ -740,7 +738,6 @@ class TransactionsViewModel @Inject constructor(

private suspend fun deleteCategory(categoryId: UUID) {
ioThread {
categoryWriter.deleteById(categoryId)
categoryRepository.deleteById(CategoryId(categoryId))

nav.back()
Expand Down

This file was deleted.

This file was deleted.

Loading