Skip to content

Commit

Permalink
refactor organize import statements for LoginService and HashAdapter.
Browse files Browse the repository at this point in the history
  • Loading branch information
ribeirogab committed Sep 15, 2024
1 parent be3678f commit ce3326c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/container.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import { ErrorHandlingMiddleware } from './middlewares';
import { EmailTemplateRepository, RegisterTokenRepository, SessionRepository, UserRepository } from './repositories';
import { AppRouter, AuthRouter, RegisterRouter, UserRouter } from './routers';
import {
LoginService,
CreateRegisterTokenService,
CreateUserService,
GetRegisterTokenService,
LoginService,
LogoutService,
} from './services';

Expand Down
6 changes: 5 additions & 1 deletion src/controllers/auth.controllers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ import type { FastifyReply, FastifyRequest } from 'fastify';
import { inject, injectable } from 'tsyringe';

import { HttpStatusCodesEnum } from '@/constants';
import type { LoginService, LoginServiceDto, LogoutService } from '@/interfaces';
import type {
LoginService,
LoginServiceDto,
LogoutService,
} from '@/interfaces';

@injectable()
export class AuthController {
Expand Down
2 changes: 1 addition & 1 deletion src/services/login.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import { HttpStatusCodesEnum } from '@/constants';
import { AppError } from '@/errors';
import type {
AuthHelper,
HashAdapter,
LoginServiceDto,
LoginService as LoginServiceInterface,
HashAdapter,
Session,
UserRepository,
} from '@/interfaces';
Expand Down

0 comments on commit ce3326c

Please sign in to comment.