Skip to content

Commit

Permalink
feat(api,admin): added feature to update description of certification
Browse files Browse the repository at this point in the history
  • Loading branch information
fbonniec committed Dec 13, 2024
1 parent 6b7060f commit 331947c
Show file tree
Hide file tree
Showing 14 changed files with 933 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,15 @@
"id": "bf78b4d6-f6ac-4c8f-9e6b-d6c6ae9e891b",
"label": "BP Boucher",
"codeRncp": "37310",
"status": "BROUILLON",
"status": "A_VALIDER_PAR_CERTIFICATEUR",
"rncpExpiresAt": 1788127200000,
"rncpDeliveryDeadline": null,
"availableAt": 1688162400000,
"typeDiplome": "Brevet Professionnel (BP)",
"languages": null,
"juryModalities": [],
"juryFrequency": null,
"juryFrequencyOther": null,
"juryPlace": null,
"degree": {
"id": "0ee2104b-9bdc-4e44-b232-123cf2e3b9a1",
"label": "Niveau 4 : Baccalauréat"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"id": "bf78b4d6-f6ac-4c8f-9e6b-d6c6ae9e891b",
"label": "BP Boucher",
"codeRncp": "37310",
"status": "BROUILLON",
"status": "A_VALIDER_PAR_CERTIFICATEUR",
"rncpExpiresAt": 1788127200000,
"rncpDeliveryDeadline": null,
"availableAt": 1688162400000,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const getFCCertificationQuery = graphql(`
}
`);

const addCertificatioMutation = graphql(`
const addCertificationMutation = graphql(`
mutation addFCCertificationForAddCertificationPage(
$input: AddCertificationInput!
) {
Expand Down Expand Up @@ -68,7 +68,7 @@ export const useAddCertificationPage = ({ rncp }: { rncp: string }) => {

const addCertification = useMutation({
mutationFn: (input: { codeRncp: string }) =>
graphqlClient.request(addCertificatioMutation, {
graphqlClient.request(addCertificationMutation, {
input,
}),
});
Expand Down
Loading

0 comments on commit 331947c

Please sign in to comment.