fix: update email configuration handling and improve type safety

- Changed the mutation for testing SMTP connection to use an action for better handling.
- Introduced an internal mutation to update the test timestamp for email configurations.
- Enhanced type safety by specifying document types for user and session queries.
- Improved error handling in the SMTP connection test to provide clearer feedback on failures.
This commit is contained in:
2025-11-04 01:59:08 -03:00
parent 3b89c496c6
commit e6105ae8ea
3 changed files with 46 additions and 26 deletions

View File

@@ -137,7 +137,7 @@
testando = true;
try {
const resultado = await client.mutation(api.configuracaoEmail.testarConexaoSMTP, {
const resultado = await client.action(api.configuracaoEmail.testarConexaoSMTP, {
servidor: servidor.trim(),
porta: portaNum,
usuario: usuario.trim(),