Browse Source

♻️ refactor(auth): update user schema import path

- replace import from user.entity with user.dto to use correct data transfer object
- ensure proper separation between entity and DTO layers
yourname 7 months ago
parent
commit
5f855dada7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/server/api/auth/login/password.ts

+ 1 - 1
src/server/api/auth/login/password.ts

@@ -5,7 +5,7 @@ import { z } from '@hono/zod-openapi'
 import { ErrorSchema } from '../../../utils/errorHandler'
 import { AppDataSource } from '../../../data-source'
 import { AuthContext } from '../../../types/context'
-import { UserSchema } from '@/server/modules/users/user.entity'
+import { UserSchema } from '@/server/modules/users/user.dto'
 
 const userService = new UserService(AppDataSource)
 const authService = new AuthService(userService)