Skip to content

Commit

Permalink
fix: email feedback case sensitivity (#399)
Browse files Browse the repository at this point in the history
  • Loading branch information
annarhughes committed Feb 28, 2024
1 parent 31e2b8f commit 27721cc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/webhooks/webhooks.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,7 @@ export class WebhooksService {

private async isFirstCampaignEmail(email: string, campaign: CAMPAIGN_TYPE) {
const matchingEntries = await this.emailCampaignRepository.find({
email,
campaignType: campaign,
where: `"email" ILIKE '${email}' AND "campaignType" LIKE '${campaign}'`,
});
return matchingEntries.length === 0;
}
Expand Down

0 comments on commit 27721cc

Please sign in to comment.