Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(api): fix biome issues
Browse files Browse the repository at this point in the history
duongdev committed Jul 8, 2024
1 parent 00a431d commit 74454e2
Showing 3 changed files with 10 additions and 4 deletions.
8 changes: 8 additions & 0 deletions apps/api/biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"$schema": "https://biomejs.dev/schemas/1.8.0/schema.json",
"extends": ["../../biome.json"],
"files": {
"include": ["**/*.ts"],
"ignore": ["**/*.d.ts"]
}
}
5 changes: 1 addition & 4 deletions apps/api/v1/routes/transactions.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import {
zCreateTransaction,
zUpdateTransaction,
} from '@6pm/validation'
import { zCreateTransaction, zUpdateTransaction } from '@6pm/validation'
import { zValidator } from '@hono/zod-validator'
import { Hono } from 'hono'
import { z } from 'zod'
1 change: 1 addition & 0 deletions apps/api/v1/services/wallet.service.ts
Original file line number Diff line number Diff line change
@@ -67,6 +67,7 @@ export async function getWalletBalance({
}: { wallet: UserWalletAccount }) {
const balance = await prisma.transaction.aggregate({
where: { walletAccountId: wallet.id },
// biome-ignore lint/style/useNamingConvention: <explanation>
_sum: { amount: true },
})

0 comments on commit 74454e2

Please sign in to comment.