4320-notificationQueue #1087
|
@ -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
|
|||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
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.