Skip to content

Commit

Permalink
fix(core): updated formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
KodeyThomas committed May 13, 2023
1 parent ab42b71 commit 1bbe188
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pothos-ltd/substantiate",
"version": "0.0.0",
"version": "1.0.0",
"license": "MIT",
"scripts": {
"prepare": "husky install"
Expand Down Expand Up @@ -50,4 +50,4 @@
"zod": "^3.21.4",
"zod-validation-error": "^1.3.0"
}
}
}
4 changes: 2 additions & 2 deletions packages/core/src/lib/exceptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ export class InternalServerErrorException extends EntityExceptionBase {
}

export class ValidationException extends EntityExceptionBase {
readonly code = VALIDATION_ERROR;

constructor(error: ValidationError, entityMetadata: EntityMetadata) {
super(`Error Validating ${entityMetadata._name}`, error);
}

readonly code = VALIDATION_ERROR;
}

export class FieldValidationException extends SubstantiateExceptionBase {
Expand Down

0 comments on commit 1bbe188

Please sign in to comment.