Skip to content

Commit

Permalink
fix: mise a jour du type dans les missions locales
Browse files Browse the repository at this point in the history
  • Loading branch information
Pomarom committed Jan 20, 2025
1 parent 805220e commit 3d5c7c1
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ import { ObjectId } from "bson";
import { STATUT_APPRENANT, StatutApprenant } from "shared/constants";
import { IEffecifMissionLocale, IEffectif, IOrganisation, IUsersMigration } from "shared/models";
import { IMissionLocaleEffectif } from "shared/models/data/missionLocaleEffectif.model";
import { IEffectifsFiltersMissionLocale } from "shared/models/routes/mission-locale/missionLocale.api";
import {
effectifsFiltersMissionLocaleSchema,
IEffectifsFiltersMissionLocale,
} from "shared/models/routes/mission-locale/missionLocale.api";
import { WithPagination } from "shared/models/routes/pagination";
import { getAnneesScolaireListFromDate } from "shared/utils";

Expand Down Expand Up @@ -126,7 +129,7 @@ const generateUnionWithEffectifDECA = (missionLocaleId: number) => {
export const getPaginatedEffectifsByMissionLocaleId = async (
missionLocaleId: number,
missionLocaleMongoId: ObjectId,
effectifsFiltersMissionLocale: WithPagination<IEffectifsFiltersMissionLocale>
effectifsFiltersMissionLocale: WithPagination<typeof effectifsFiltersMissionLocaleSchema>
) => {
const { page = 1, limit = 20, sort = "nom", order = "asc", ...effectifFilters } = effectifsFiltersMissionLocale;

Expand Down

0 comments on commit 3d5c7c1

Please sign in to comment.