Skip to content

Commit

Permalink
newsletter setup
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsan-g committed Jun 29, 2024
1 parent e7c4b18 commit e35e57a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/features/campaign/campaign.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ export class CampaignService {
const alreadyReceivedEmail =
emailCampaign.receivers &&
emailCampaign.receivers.find((r) => r.flaskUserId === flaskUser.id);
if (alreadyReceivedEmail) {
if (alreadyReceivedEmail && !campaignDetails.isTest) {
this.logger.warn(`Already Received Email: ${nestUser.flaskUserId}`);
alreadyReceivedEmailCount++;
continue;
Expand All @@ -723,7 +723,7 @@ export class CampaignService {
const alreadyReceivedSms = smsCampaign.receivers.find(
(r) => r.flaskUserId === flaskUser.id,
);
if (alreadyReceivedSms) {
if (alreadyReceivedSms && !campaignDetails.isTest) {
this.logger.warn(`Already Received Sms: ${nestUser.flaskUserId}`);
alreadyReceivedSmsCount++;
continue;
Expand Down

0 comments on commit e35e57a

Please sign in to comment.