Skip to content

Commit

Permalink
Teste deploy na vercel - 5 - Back-end.
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielSS187 committed Feb 15, 2023
1 parent f84cdc4 commit 76af443
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion back-end/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"start": "npx tsup src && node ./dist/index.js",
"start": "node ./dist/index.js",
"dev": "tsx watch src/index.ts",
"build": "tsup src",
"test": "echo \"Error: no test specified\" && exit 1",
Expand Down
2 changes: 1 addition & 1 deletion back-end/src/Errors/CustomError.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export class CustomError extends Error {
constructor(
public message: string, public statusCode: number){
public message: Record<string, string> | any, public statusCode: number){
super(JSON.stringify(message))
};
};
4 changes: 2 additions & 2 deletions back-end/src/Errors/TodoErrors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { CustomError } from "./CustomError";

export class ErrorTodo extends CustomError {
constructor(
public error: Record<string, string>,
public error: Record<string, string> | any,
public statusCode: number
){
super(JSON.stringify(error), statusCode);
super(error, statusCode);
};
};
4 changes: 2 additions & 2 deletions back-end/src/Errors/userErrors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { CustomError } from "./CustomError";

export class ErrorUser extends CustomError {
constructor(
public error: Record<string, string>,
public error: Record<string, string> | any,
public statusCode: number
){
super(JSON.stringify(error), statusCode);
super(error, statusCode);
};
};

2 comments on commit 76af443

@vercel
Copy link

@vercel vercel bot commented on 76af443 Feb 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 76af443 Feb 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

modern-to-do-list – ./front-end

modern-to-do-list-gabrielss187.vercel.app
modern-to-do-list.vercel.app
modern-to-do-list-git-main-gabrielss187.vercel.app

Please sign in to comment.