Skip to content

Commit

Permalink
Ageitando um error de import - Back-end.
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielSS187 committed Feb 13, 2023
1 parent 97e4f2d commit 4b58e79
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion back-end/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import "express-async-errors";
import { userRoutes } from "./routes/userRoutes";
import { todoRoutes } from "./routes/todoRoutes";
import { authMiddleware } from "./middlewares/authMiddleware";
import { CustomError } from "./Errors/CustomError";
import { CustomError } from "./errors/CustomError";


app.use("/user", userRoutes);
Expand Down
2 changes: 0 additions & 2 deletions back-end/src/middlewares/authMiddleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ import { NextFunction, Request, Response } from "express";

import { JwtAdapter } from "../adapters/JwtAdapter/JwtAdapter";

import { CustomError } from "../Errors/CustomError";

const jwt = new JwtAdapter();

export const authMiddleware = ( req: Request, res: Response, next: NextFunction ) => {
Expand Down
2 changes: 1 addition & 1 deletion back-end/src/useCases/todoCases/TodoCases.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
TDeleteRequest,
TGetAllTodos
} from "./validations";
import { ErrorTodo } from "../../Errors/TodoErrors";
import { ErrorTodo } from "../../errors/TodoErrors";

export class TodoCases {
constructor(
Expand Down
2 changes: 1 addition & 1 deletion back-end/src/useCases/userCases/UserCases.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
signInRequestSchema
} from "./validations";

import { ErrorUser } from "../../Errors/UserErrors";
import { ErrorUser } from "../../errors/UserErrors";

export class UserCases {
constructor(
Expand Down

0 comments on commit 4b58e79

Please sign in to comment.