Compare commits

...
4 Commits
Author SHA1 Message Date
Rodrigo Zamboni 8a519ac217 Merge pull request #51 from dadosfera/beta
Beta
2022-04-14 15:33:36 -03:00
Victor Radael ffa69a0cf5 Merge pull request #50 from dadosfera/alpha
Alpha
2022-04-14 15:14:12 -03:00
Rodrigo Zamboni 7722e380e3 Merge pull request #49 from dadosfera/authFix
FIX: using Unauth nest function
2022-04-14 15:01:18 -03:00
rodrigo.zamboni ecdc7b4eb6 FIX: using Unauth nest function 2022-04-14 14:56:18 -03:00
+2 -8
View File
@@ -1,10 +1,4 @@
import {
Body,
Controller,
HttpException,
HttpStatus,
Post,
} from '@nestjs/common';
import { Body, Controller, Post, UnauthorizedException } from '@nestjs/common';
import { AuthClientService } from 'src/clients/auth/client.service';
@@ -25,7 +19,7 @@ export class AuthController {
.signIn({ username, password })
.then((result) => result)
.catch((err) => {
throw new HttpException(err.message, HttpStatus.UNAUTHORIZED);
throw new UnauthorizedException(err.message);
});
return tokens;