Skip to content

Commit

Permalink
fix (authService) : redis queue injection
Browse files Browse the repository at this point in the history
  • Loading branch information
alpemreelmas committed Jun 2, 2024
1 parent 05b1c5a commit ec6ec74
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .env.local
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
MONGODB_URI=mongodb://127.0.0.1:27017/AIBackend
JWT_SECRET_KEY=123

MAIL_HOST=email-smtp.eu-north-1.amazonaws.com
MAIL_PORT=25
MAIL_SECURE=false
MAIL_USERNAME=AKIA5FTY7FF2ADQZF66C
MAIL_PASSWORD=BBoXNWCEzb7GgfK5La+alTH+pAqbIlyegV0sT4Bz8k9V
MAIL_DEFAULT_FROM=ator@edu.cdv.pl

NOTIFICATION_CHANNEL=mail

REDIS_HOST=127.0.0.1
REDIS_PORT=6379

OPENAI_API_KEY=
ORGANIZATON_ID=

SITE_URL=http://localhost:5173/
2 changes: 1 addition & 1 deletion src/auth/services/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export class AuthService {
);

this.notificationService.sendNotification(
new verificationNotification(user),
new verificationNotification(user, this.emailQueue),
);
}

Expand Down

0 comments on commit ec6ec74

Please sign in to comment.