Skip to content

Commit

Permalink
fix(email) : get firstame user instead of name
Browse files Browse the repository at this point in the history
fix(env) : remove brevo api key
  • Loading branch information
LordPax committed Dec 26, 2023
1 parent b9753eb commit 69db72a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions back/api/.env
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,3 @@ JWT_SECRET_KEY=%kernel.project_dir%/config/jwt/private.pem
JWT_PUBLIC_KEY=%kernel.project_dir%/config/jwt/public.pem
JWT_PASSPHRASE=95afd29cd47e255b3678a9c9650de39f70532d03146877c21e53ae5e79a3246f
###< lexik/jwt-authentication-bundle ###

BREVO_API_KEY=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
2 changes: 1 addition & 1 deletion back/api/src/Subscriber/ProviderRequestSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function onRequestEvent(ResponseEvent $event)
$requestId = $content->id;
$admins = $this->userRepository->findByRole("ROLE_ADMIN");

$this->email->sendRequestProviderEmail($admins, $user->name, $requestId);
$this->email->sendRequestProviderEmail($admins, $user->firstname, $requestId);
$this->email->sendProviderConfimationEmail($user->email, $user->firstname);
}
}
Expand Down

0 comments on commit 69db72a

Please sign in to comment.