Skip to content

Commit 331947c

Browse files
committed
feat(api,admin): added feature to update description of certification
1 parent 6b7060f commit 331947c

File tree

14 files changed

+933
-7
lines changed

14 files changed

+933
-7
lines changed

packages/reva-admin-react/cypress/e2e/responsable-certifications/certifications/update-certification-page/fixtures/certification-bp-boucher.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,15 @@
44
"id": "bf78b4d6-f6ac-4c8f-9e6b-d6c6ae9e891b",
55
"label": "BP Boucher",
66
"codeRncp": "37310",
7-
"status": "BROUILLON",
7+
"status": "A_VALIDER_PAR_CERTIFICATEUR",
88
"rncpExpiresAt": 1788127200000,
99
"rncpDeliveryDeadline": null,
1010
"availableAt": 1688162400000,
11-
"typeDiplome": "Brevet Professionnel (BP)",
11+
"languages": null,
12+
"juryModalities": [],
13+
"juryFrequency": null,
14+
"juryFrequencyOther": null,
15+
"juryPlace": null,
1216
"degree": {
1317
"id": "0ee2104b-9bdc-4e44-b232-123cf2e3b9a1",
1418
"label": "Niveau 4 : Baccalauréat"

packages/reva-admin-react/cypress/e2e/responsable-certifications/certifications/update-certification-prerequisites-page/fixtures/certification-bp-boucher.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"id": "bf78b4d6-f6ac-4c8f-9e6b-d6c6ae9e891b",
55
"label": "BP Boucher",
66
"codeRncp": "37310",
7-
"status": "BROUILLON",
7+
"status": "A_VALIDER_PAR_CERTIFICATEUR",
88
"rncpExpiresAt": 1788127200000,
99
"rncpDeliveryDeadline": null,
1010
"availableAt": 1688162400000,

packages/reva-admin-react/src/app/(admin)/certifications/add-certification/description/addCertification.hook.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const getFCCertificationQuery = graphql(`
3636
}
3737
`);
3838

39-
const addCertificatioMutation = graphql(`
39+
const addCertificationMutation = graphql(`
4040
mutation addFCCertificationForAddCertificationPage(
4141
$input: AddCertificationInput!
4242
) {
@@ -68,7 +68,7 @@ export const useAddCertificationPage = ({ rncp }: { rncp: string }) => {
6868

6969
const addCertification = useMutation({
7070
mutationFn: (input: { codeRncp: string }) =>
71-
graphqlClient.request(addCertificatioMutation, {
71+
graphqlClient.request(addCertificationMutation, {
7272
input,
7373
}),
7474
});

0 commit comments

Comments
 (0)