FIX: changed language strategy to use new custom decorator

This commit is contained in:
Gabriel Rosa
2023-02-14 08:56:23 -03:00
parent 9058b80383
commit de06512249
16 changed files with 717 additions and 155 deletions
-1
View File
@@ -15,7 +15,6 @@ export class OauthController {
private logger: DadosferaLogger,
) {
switch (process.env.ENV) {
case 'dev':
case 'stg':
this.redirectUrl = `https://app.${process.env.ENV}.dadosfera.ai/collect/auth-callback`;
break;
@@ -29,7 +29,6 @@ export class GoogleStrategy extends PassportStrategy(Strategy, 'google') {
super(options, verify);
switch (process.env.ENV) {
case 'dev':
case 'stg':
this.redirect_uri = `https://maestro.${process.env.ENV}.dadosfera.ai/oauth`;
break;