Skip to content

Commit ee4be5d

Browse files
committed
Update get-novu-provider-credentials.usecase.ts
1 parent 45c5756 commit ee4be5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/application-generic/src/usecases/get-novu-provider-credentials/get-novu-provider-credentials.usecase.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export class GetNovuProviderCredentials {
4444
if (integration.providerId === EmailProviderIdEnum.Novu && integration.recipientEmail && isTestProviderLimitsEnabled) {
4545
const user = await this.userRepository.findById(integration.userId);
4646

47-
if (user?.email !== integration.recipientEmail) {
47+
if (user?.email && user?.email !== integration.recipientEmail) {
4848
throw new ForbiddenException(
4949
`Recipient email (${integration.recipientEmail}) does not match the current logged-in user. Novu test provider can only be used to send emails to the current logged-in user. Connect your own email provider to send emails to other addresses.`,
5050
);

0 commit comments

Comments
 (0)