Merge branch 'staging' into preprod
This commit is contained in:
commit
657dd93890
@ -7,12 +7,9 @@ import { BackendVariables } from "@Common/config/variables/Variables";
|
|||||||
|
|
||||||
@Service()
|
@Service()
|
||||||
export default class MailchimpService extends BaseService {
|
export default class MailchimpService extends BaseService {
|
||||||
private static readonly from = "no-reply@smart-chain.fr";
|
private static readonly from = "no-reply@lecoffre.io";
|
||||||
|
|
||||||
constructor(
|
constructor(private emailRepository: EmailRepository, protected variables: BackendVariables) {
|
||||||
private emailRepository: EmailRepository,
|
|
||||||
protected variables: BackendVariables,
|
|
||||||
) {
|
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -28,7 +25,7 @@ export default class MailchimpService extends BaseService {
|
|||||||
* @description : Create a new email
|
* @description : Create a new email
|
||||||
* @throws {Error} If email cannot be created
|
* @throws {Error} If email cannot be created
|
||||||
*/
|
*/
|
||||||
public async create(emailEntity: Emails): Promise<Emails> {
|
public async create(emailEntity: Emails): Promise<Emails> {
|
||||||
emailEntity.from = MailchimpService.from;
|
emailEntity.from = MailchimpService.from;
|
||||||
return this.emailRepository.create(emailEntity);
|
return this.emailRepository.create(emailEntity);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user