recuperando console log para validacion
This commit is contained in:
parent
b829caff24
commit
f86d360e7c
|
@ -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'
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue