Skip to content

Commit

Permalink
fix: wrong variable in msw routes
Browse files Browse the repository at this point in the history
  • Loading branch information
rmonnier9 committed Dec 30, 2024
1 parent d579b46 commit 18f919f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion clients/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const routes = {
mandatairesRCS: (siren: string) =>
`/v3/infogreffe/rcs/unites_legales/${siren}/mandataires_sociaux`,
effectifs: {
annuels: (siren: string, year: number) =>
annuels: (siren: string, year: string | number) =>
`/v3/gip_mds/unites_legales/${siren}/effectifs_annuels/${year}`,
},
},
Expand Down
2 changes: 1 addition & 1 deletion cypress/mocks/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,5 +107,5 @@ export const routesHandlers = [
journalOfficielAssociationsHandler
),
http.get(routes.journalOfficielAssociations.ods.metadata, odsMetadataHandler),
http.get(routes.apiEntreprise.effectifsa.annuels('*', '*'), effectifsHandler),
http.get(routes.apiEntreprise.effectifs.annuels('*', '*'), effectifsHandler),
];
2 changes: 1 addition & 1 deletion next-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
/// <reference types="next/navigation-types/compat/navigation" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

0 comments on commit 18f919f

Please sign in to comment.