From 27013af12384dd8087a87ba2b12ecf58ae312f94 Mon Sep 17 00:00:00 2001 From: Maxime Lalo Date: Fri, 8 Dec 2023 14:44:15 +0100 Subject: [PATCH] :sparkles: Changing the mailchimp email address --- src/services/common/MailchimpService/MailchimpService.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/services/common/MailchimpService/MailchimpService.ts b/src/services/common/MailchimpService/MailchimpService.ts index 4e73408c..0b57974f 100644 --- a/src/services/common/MailchimpService/MailchimpService.ts +++ b/src/services/common/MailchimpService/MailchimpService.ts @@ -7,12 +7,9 @@ import { BackendVariables } from "@Common/config/variables/Variables"; @Service() export default class MailchimpService extends BaseService { - private static readonly from = "no-reply@smart-chain.fr"; + private static readonly from = "no-reply@lecoffre.io"; - constructor( - private emailRepository: EmailRepository, - protected variables: BackendVariables, - ) { + constructor(private emailRepository: EmailRepository, protected variables: BackendVariables) { super(); } @@ -28,7 +25,7 @@ export default class MailchimpService extends BaseService { * @description : Create a new email * @throws {Error} If email cannot be created */ - public async create(emailEntity: Emails): Promise { + public async create(emailEntity: Emails): Promise { emailEntity.from = MailchimpService.from; return this.emailRepository.create(emailEntity); }