Skip to content

Open source personal finance application

chore: remove dead code — categoriesIds from type, walletTypeValidator re-export

Ilya Komichevba7073b37fb7
diff --git a/app/components/categories/useCategoriesStore.ts b/app/components/categories/useCategoriesStore.ts
index 5f61484a..bf51e15f 100644
--- a/app/components/categories/useCategoriesStore.ts
+++ b/app/components/categories/useCategoriesStore.ts
@@ -33,7 +33,6 @@ const transfer: CategoryItem = {
type CategoriesStore = {
cancelPersist: () => void
categoriesForBeParent: ComputedRef<CategoryId[]>
- categoriesIds: ComputedRef<CategoryId[]>
categoriesIdsForTrnValues: ComputedRef<CategoryId[]>
categoriesRootIds: ComputedRef<CategoryId[]>
deleteCategory: (id: CategoryId, trnsIds?: TrnId[]) => Promise<RemapInfo | void> | void
diff --git a/convex/shared.ts b/convex/shared.ts
index 8444a416..7c6fe705 100644
--- a/convex/shared.ts
+++ b/convex/shared.ts
@@ -3,7 +3,7 @@ import type { MutationCtx, QueryCtx } from './_generated/server'
import { authComponent } from './auth'
-export { TrnType, walletTypeValidator } from './validators'
+export { TrnType } from './validators'
/**
* Validate string field length. Throws if value exceeds maxLen.
diff --git a/convex/wallets.ts b/convex/wallets.ts
index c94f86ff..edeea413 100644
--- a/convex/wallets.ts
+++ b/convex/wallets.ts
@@ -2,7 +2,8 @@ import { v } from 'convex/values'
import { internal } from './_generated/api'
import { action, internalMutation, mutation, query } from './_generated/server'
-import { CREDIT_LIMIT_MAX, getAuthUser, getOwnEntity, requireAuthUser, validateNumberRange, validateStringLength, walletTypeValidator } from './shared'
+import { CREDIT_LIMIT_MAX, getAuthUser, getOwnEntity, requireAuthUser, validateNumberRange, validateStringLength } from './shared'
+import { walletTypeValidator } from './validators'
import { removeTrnsFromHash } from './trnsHash'
export const list = query({