fix: Membre edition #49
@ -452,7 +452,7 @@ public class MembreService {
|
|||||||
})))
|
})))
|
||||||
.call(membreModel ->
|
.call(membreModel ->
|
||||||
repository.count(
|
repository.count(
|
||||||
"unaccent(lname) ILIKE unaccent(?2) AND unaccent(fname) ILIKE unaccent(?2) AND club = ?3",
|
"unaccent(lname) ILIKE unaccent(?1) AND unaccent(fname) ILIKE unaccent(?2) AND club = ?3",
|
||||||
input.getLname(), input.getFname(), membreModel.getClub())
|
input.getLname(), input.getFname(), membreModel.getClub())
|
||||||
.invoke(Unchecked.consumer(c -> {
|
.invoke(Unchecked.consumer(c -> {
|
||||||
if (c > 0)
|
if (c > 0)
|
||||||
|
|||||||
@ -33,7 +33,7 @@ export function InformationForm({data}) {
|
|||||||
toast.success('Profile mis à jours avec succès 🎉');
|
toast.success('Profile mis à jours avec succès 🎉');
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
console.log(e.response)
|
console.log(e.response)
|
||||||
toast.error('Échec de la mise à jours du profile 😕 (code: ' + e.response.status + ')');
|
toast.error('Échec de la mise à jours du profile 😕 (code: ' + e.response.status + ': ' + e.response.data + ')');
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
if (setLoading)
|
if (setLoading)
|
||||||
setLoading(0)
|
setLoading(0)
|
||||||
|
|||||||
@ -50,7 +50,7 @@ function Form() {
|
|||||||
navigate(`/club/member/${data.data}`)
|
navigate(`/club/member/${data.data}`)
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
console.log(e.response)
|
console.log(e.response)
|
||||||
toast.error('Échec de la création du profile 😕 (code: ' + e.response.status + ')');
|
toast.error('Échec de la création du profile 😕 (code: ' + e.response.status + ': ' + e.response.data + ')');
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
if (setLoading)
|
if (setLoading)
|
||||||
setLoading(0)
|
setLoading(0)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user