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

Commit

Permalink
Technical Debt : Migrate the code to use the new the CategoryReposito…
Browse files Browse the repository at this point in the history
…ry (#3583)

* [2962]- Replace CategoryDao & WriteCategoryDao with CategoryRepository

* Remove CategoryDao WriteCategoryDao from BackupDataUseCase

* Revert BackupDataUseCase to old state

---------

Co-authored-by: Priyatanu <priyatanu.dey@neugelb.com>
  • Loading branch information
priyatanu and Priyatanu authored Oct 4, 2024
1 parent 9ad86b9 commit 5c532c9
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 40 deletions.
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.

0 comments on commit 5c532c9

Please sign in to comment.