-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Envío de email a usuario registrado #43
Conversation
Se realizó integración de envío de email al usuario registrado |
services/notifyViaEmail.js
Outdated
if (err) { | ||
return err | ||
} | ||
console.log(data,typeof data); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: console.log usar solo para debugear.
services/notifyViaEmail.js
Outdated
throw new Error(error) | ||
} | ||
} | ||
static sendEmail = async (email,) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pasar a POO.
services/notifyViaEmail.js
Outdated
static logo = "https://firebasestorage.googleapis.com/v0/b/aplication1-35a9f.appspot.com/o/LOGO-SOMOS%20MAS.png?alt=media&token=0f852ec5-0c90-42af-aead-7ebe0f0b893a" | ||
static subject="Confirmación de Registro" | ||
static organizationName="SOMOS MAS" | ||
static welcomeText="Bienvenido" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: dejaría algunas variables asociadas a una función de envío de bienvenida, así no es reutilizable para otra cosa.
… mayor reutilización del servicio
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
throw new Error(error) | ||
} | ||
} | ||
static async sendEmail(email,subject,welcomeText) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Esta función solo reconoce envío de bienvenida, tener en cuenta si se quiere extender.
No description provided.