From 74454e20627487884d747d7b693f56e7a32b01a1 Mon Sep 17 00:00:00 2001 From: Dustin Do Date: Tue, 9 Jul 2024 01:54:15 +0700 Subject: [PATCH] refactor(api): fix biome issues --- apps/api/biome.json | 8 ++++++++ apps/api/v1/routes/transactions.ts | 5 +---- apps/api/v1/services/wallet.service.ts | 1 + 3 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 apps/api/biome.json diff --git a/apps/api/biome.json b/apps/api/biome.json new file mode 100644 index 0000000..b9710ae --- /dev/null +++ b/apps/api/biome.json @@ -0,0 +1,8 @@ +{ + "$schema": "https://biomejs.dev/schemas/1.8.0/schema.json", + "extends": ["../../biome.json"], + "files": { + "include": ["**/*.ts"], + "ignore": ["**/*.d.ts"] + } +} diff --git a/apps/api/v1/routes/transactions.ts b/apps/api/v1/routes/transactions.ts index 7159513..75a24e9 100644 --- a/apps/api/v1/routes/transactions.ts +++ b/apps/api/v1/routes/transactions.ts @@ -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' diff --git a/apps/api/v1/services/wallet.service.ts b/apps/api/v1/services/wallet.service.ts index 7d849e5..60bbcde 100644 --- a/apps/api/v1/services/wallet.service.ts +++ b/apps/api/v1/services/wallet.service.ts @@ -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: _sum: { amount: true }, })