feat: refs #6404 add mail notification #2566
Labels
No Milestone
No Assignees
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: verdnatura/salix#2566
Loading…
Reference in New Issue
No description provided.
Delete Branch "6404-sendMailOnDeadLine"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
WIP: feat: refs #6404 add mail notificationto feat: refs #6404 add mail notification@ -36,0 +32,4 @@
deadLine.setHours(hours, minutes, 0);
if (today > deadLine && (!mrw.notified || mrw.notified.setHours(0, 0, 0, 0) !== today.setHours(0, 0, 0, 0))) {
const email = new Email('mrw-webService-deadline', {recipient: 'agencias@verdnatura.es', lang: 'es'});
webservice
oweb-service
si es kebab-case va sin mayúscula.@ -120,0 +165,4 @@
expect(mail).toEqual(null);
await models.MrwConfig.updateAll({id: 1}, {expeditionDeadLine: null, notified: null});
Porque tantos saltos de linea vacios?
@ -4,0 +11,4 @@
Self.getConfig = async function() {
const mrw = await Self.app.models.MrwConfig.findOne(null);
if (!mrw) throw new UserError(`Some mrwConfig parameters are not set`);
MRW service is not configured
Si puedes das ok