Skip to content

Commit a379786

Browse files
committed
[REMANIEMENT] Corrige la faute d’orthographe sur optionnelle dans le validateur de département
1 parent ad6f290 commit a379786

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

mon-aide-cyber-api/src/api/annuaire-aidants/routeAPIAnnuaireAidants.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export const routesAPIAnnuaireAidants = (
4848
validateurDeDepartement({
4949
nomChamp: 'departement',
5050
emplacement: 'PARAMETRE_REQUETE',
51-
presence: 'OPTIONELLE',
51+
presence: 'OPTIONNELLE',
5252
}),
5353
async (
5454
requete: Request,

mon-aide-cyber-api/src/api/validateurs/departements.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { departements } from '../../gestion-demandes/departements';
44
type CriteresDeValidation = {
55
emplacement: 'CORPS' | 'PARAMETRE_REQUETE';
66
nomChamp: string;
7-
presence: 'OPTIONELLE' | 'OBLIGATOIRE';
7+
presence: 'OPTIONNELLE' | 'OBLIGATOIRE';
88
};
99

1010
export const validateurDeDepartement = (
@@ -24,7 +24,7 @@ export const validateurDeDepartement = (
2424
? body(criteres.nomChamp)
2525
: query(criteres.nomChamp);
2626

27-
if (criteres.presence === 'OPTIONELLE') {
27+
if (criteres.presence === 'OPTIONNELLE') {
2828
chaineDeValidation = chaineDeValidation.optional();
2929
}
3030

0 commit comments

Comments
 (0)