gdpr audit implemented, email log, vollmachten, pdf delete cancel data privacy and vollmachten, removed message no id card in engergy car, and other contracts that are not telecom contracts, added insert counter for engery
This commit is contained in:
@@ -317,7 +317,12 @@ export async function sendEmailFromAccount(req: Request, res: Response): Promise
|
||||
};
|
||||
|
||||
// E-Mail senden
|
||||
const result = await sendEmail(credentials, stressfreiEmail.email, emailParams);
|
||||
const authReq = req as any;
|
||||
const result = await sendEmail(credentials, stressfreiEmail.email, emailParams, {
|
||||
context: 'customer-email',
|
||||
customerId: stressfreiEmail.customerId,
|
||||
triggeredBy: authReq.user?.email,
|
||||
});
|
||||
|
||||
if (!result.success) {
|
||||
res.status(400).json({
|
||||
|
||||
Reference in New Issue
Block a user