Merge branch 'dev' into staging
This commit is contained in:
commit
a4e919a46b
@ -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<Emails> {
|
||||
public async create(emailEntity: Emails): Promise<Emails> {
|
||||
emailEntity.from = MailchimpService.from;
|
||||
return this.emailRepository.create(emailEntity);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user