Skip to content

Commit dc3e685

Browse files
arkjunclaude
andcommitted
fix: resolve biome formatting and import sorting errors
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent c7abff8 commit dc3e685

File tree

4 files changed

+22
-6
lines changed

4 files changed

+22
-6
lines changed

apps/api/src/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@ import { Hono } from 'hono';
22
import { cors } from 'hono/cors';
33
import type { Session, User } from 'lucia';
44
import { sessionMiddleware } from './middleware/auth';
5+
import { type DbVariables, dbMiddleware } from './middleware/db';
56
import { auth } from './routes/auth';
67
import { subscriptions } from './routes/subscriptions';
78
import { users } from './routes/users';
89

9-
import { dbMiddleware, type DbVariables } from './middleware/db';
10-
1110
export type Env = {
1211
DB: D1Database;
1312
GOOGLE_CLIENT_ID: string;

apps/api/src/middleware/db.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { drizzle, type DrizzleD1Database } from 'drizzle-orm/d1';
1+
import { type DrizzleD1Database, drizzle } from 'drizzle-orm/d1';
22
import { createMiddleware } from 'hono/factory';
33
import type { Env } from '../index';
44

apps/api/src/routes/subscriptions.ts

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,29 @@ const subscriptionSchema = z.object({
1919
price: z.number().nonnegative(),
2020
originalPrice: z.number().nonnegative().optional(),
2121
currency: z.enum(['KRW', 'USD', 'JPY', 'EUR']).default('KRW'),
22-
billingCycle: z.enum(['monthly', 'yearly', 'weekly', 'quarterly']).default('monthly'),
22+
billingCycle: z
23+
.enum(['monthly', 'yearly', 'weekly', 'quarterly'])
24+
.default('monthly'),
2325
nextBillingDate: z.string().optional(),
2426
startDate: z.string().optional(),
2527
country: z.string().default('KR'),
26-
category: z.enum(['ott', 'music', 'gaming', 'shopping', 'productivity', 'cloud', 'news', 'fitness', 'education', 'finance', 'food', 'security', 'other']).optional(),
28+
category: z
29+
.enum([
30+
'ott',
31+
'music',
32+
'gaming',
33+
'shopping',
34+
'productivity',
35+
'cloud',
36+
'news',
37+
'fitness',
38+
'education',
39+
'finance',
40+
'food',
41+
'security',
42+
'other',
43+
])
44+
.optional(),
2745
url: z.string().optional(),
2846
logoUrl: z.string().optional(),
2947
memo: z.string().optional(),

apps/web/src/components/auth/auth-provider.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ export function AuthProvider({ children }: { children: ReactNode }) {
6464
window.location.href = api.auth.login.google.$url().toString();
6565
};
6666

67-
6867
const loginWithEmail = async (email: string, password: string) => {
6968
const res = await api.auth.login.email.$post({
7069
json: { email, password },

0 commit comments

Comments
 (0)