Skip to content

Commit dedfdce

Browse files
committed
Agregada funcion para enviar correo
1 parent e270554 commit dedfdce

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ if(dotenv.error) throw dotenv.error
55
const c = con => console.log(con)
66

77
const pool = require('./database')
8+
const enviaEmail = require('./mail')
89

910
// Obtiene usuarios de BBDD para datos del archivo
1011
const getUsers = async () => {
@@ -17,4 +18,5 @@ const getUsers = async () => {
1718

1819
(async () => {
1920
const users = await getUsers()
21+
enviaEmail(c,users)
2022
})()

0 commit comments

Comments
 (0)