4320-notificationQueue #1087

Merged
alexm merged 15 commits from 4320-notificationQueue into dev 2022-10-28 06:06:04 +00:00
1 changed files with 0 additions and 3 deletions
Showing only changes of commit c24b975f26 - Show all commits

View File

@ -16,9 +16,6 @@ module.exports = Self => {
}); });
Self.send = async options => { Self.send = async options => {
if (process.env.NODE_ENV == 'test')
throw new UserError(`Action not allowed on the test environment`);
const models = Self.app.models; const models = Self.app.models;
const findStatus = 'pending'; const findStatus = 'pending';
alexm marked this conversation as resolved
Review

En test no tiene que lanzar error y debe ejecutar todo el código a excepción de la linea que envía el correo, así se puede comprobar que el proceso funciona correctamente.

En test no tiene que lanzar error y debe ejecutar todo el código a excepción de la linea que envía el correo, así se puede comprobar que el proceso funciona correctamente.