summary refs log tree commit diff
path: root/src/dto/auth/AuthDto.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/dto/auth/AuthDto.js')
-rw-r--r--src/dto/auth/AuthDto.js11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/dto/auth/AuthDto.js b/src/dto/auth/AuthDto.js

index 22e2620..0a4c8dd 100644 --- a/src/dto/auth/AuthDto.js +++ b/src/dto/auth/AuthDto.js
@@ -23,15 +23,6 @@ export class AuthDto { } } - try { - return await AuthDto.schema.validateAsync(obj); - } catch (e) { - console.log(e); - throw new SafeNSoundError({ - errCode: 'JOI_VALIDATION_ERROR', - message: e.message, - validation_details: e.details - }); - } + return await AuthDto.schema.validateAsync(obj); } }