recuperando console log para validacion

This commit is contained in:
Xavier Guerrero 2024-06-19 21:30:19 +02:00
parent b829caff24
commit f86d360e7c
3 changed files with 6 additions and 0 deletions

View File

@ -21,6 +21,7 @@ dependencies {
implementation 'org.springframework.boot:spring-boot-starter-mail'
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.aspectj:aspectjweaver'
runtimeOnly 'org.postgresql:postgresql'
runtimeOnly 'com.mysql:mysql-connector-j'
testImplementation 'org.springframework.boot:spring-boot-starter-test'

View File

@ -24,6 +24,9 @@ export const useEmailAPIStore = defineStore('emailAPI', {
}
const response1 = await sendSolicitudPartido(bodyCorreo1)
const response2 = await sendSolicitudPartido(bodyCorreo2)
console.log('Respuesta del correo 1:', response1)
console.log('Respuesta del correo 2:', response2)
},
async enviarEmailsPartidoAceptado(urlPartido, urlAsignacion1, urlAsignacion2) {
const apartidoId = this.extractIdFromUrl(urlPartido)
@ -35,6 +38,7 @@ export const useEmailAPIStore = defineStore('emailAPI', {
puntuacion2Id: apuntuacion2Id
}
const response = await sendPartidoAceptado(body)
console.log('Respuesta del correo:', response)
}
}
})

View File

@ -73,6 +73,7 @@ export const usePartidosAPIStore = defineStore("partidosAPI", {
}
} catch (error) {
if (error.response && error.response.status == 409) {
console.log("Ya existe un partido programado para ese horario en ese campo.");
return "error"
} else {
console.error("Error al enviar el partido: ", error)