fix: corrige erros do ESLint e configura variáveis globais
- Adiciona variáveis globais do Node.js (process, console, __dirname, require, module, exports) - Adiciona variáveis globais do Jest (describe, it, beforeEach, fail, etc.) - Configura ESLint para arquivos JavaScript de configuração - Remove diretivas eslint-disable não utilizadas - Corrige variáveis não usadas prefixando com _ - Ajusta regras do ESLint para ignorar variáveis que começam com _ - Formata código com Prettier
This commit is contained in:
@@ -3,15 +3,16 @@ import { Injectable } from '@nestjs/common';
|
||||
@Injectable()
|
||||
export class EmailService {
|
||||
async sendPasswordReset(email: string, newPassword: string) {
|
||||
const sql = `
|
||||
INSERT INTO CORRESPONDENCIAS (
|
||||
CORRESPONDENCIA_ID, DTINCLUSAO, TITULO, MENSAGEM, EMAIL, DESTINATARIO
|
||||
) VALUES (
|
||||
SEQ_CORRESPONDENCIAS.NEXTVAL, SYSDATE, 'Alteração de senha - CoteLivia',
|
||||
'Sua nova senha para acesso ao portal COTELIVIA é ${newPassword}',
|
||||
:email, :email
|
||||
)
|
||||
`;
|
||||
// SQL query would be executed here if database connection was available
|
||||
// const sql = `
|
||||
// INSERT INTO CORRESPONDENCIAS (
|
||||
// CORRESPONDENCIA_ID, DTINCLUSAO, TITULO, MENSAGEM, EMAIL, DESTINATARIO
|
||||
// ) VALUES (
|
||||
// SEQ_CORRESPONDENCIAS.NEXTVAL, SYSDATE, 'Alteração de senha - CoteLivia',
|
||||
// 'Sua nova senha para acesso ao portal COTELIVIA é ${newPassword}',
|
||||
// :email, :email
|
||||
// )
|
||||
// `;
|
||||
|
||||
console.log(`[Email enviado para ${email}] Senha: ${newPassword}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user