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:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user