From 9bf7cc660ec54138bf1cf3cc3887fe60e85916b0 Mon Sep 17 00:00:00 2001 From: Gabriel Rosa Date: Thu, 23 Jun 2022 16:31:48 -0300 Subject: [PATCH] tiny code organization improvements --- src/modules/oauth/oauth.controller.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/oauth/oauth.controller.ts b/src/modules/oauth/oauth.controller.ts index 2b31ff2..b9dab90 100644 --- a/src/modules/oauth/oauth.controller.ts +++ b/src/modules/oauth/oauth.controller.ts @@ -31,14 +31,14 @@ export class OauthController { this.frontendRedirectUri = `http://localhost:4200/coletix/auth-callback`; } } - @UseGuards(AuthGuard('hubspot')) @Get('hubspot') - async oauthHubspot(@Req() req) { + @UseGuards(AuthGuard('hubspot')) + async oauthHubspot() { return true; } - @UseGuards(AuthGuard('hubspot')) @Get('hubspot/callback') + @UseGuards(AuthGuard('hubspot')) @Redirect() async oauthHubspotCallback(@Req() req, @Query('state') customer_id) { const { authInfo } = req;