Skip to content

Commit

Permalink
fix: missing param (#815)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevbarns authored Nov 14, 2023
1 parent e5ffb88 commit c211a13
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/src/services/user.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ const changePassword = async (username: string, newPassword: string) => {

type IUserRecruterPicked = Pick<
IUserRecruteur,
"_id" | "first_name" | "last_name" | "establishment_id" | "establishment_raison_sociale" | "establishment_siret" | "createdAt" | "email" | "phone"
"_id" | "first_name" | "last_name" | "establishment_id" | "establishment_raison_sociale" | "establishment_siret" | "createdAt" | "email" | "phone" | "type"
>

type TReturnedType = {
Expand All @@ -158,6 +158,7 @@ const getUserAndRecruitersDataForOpcoUser = async (opco: string): Promise<TRetur
email: 1,
phone: 1,
status: 1,
type: 1,
})
.lean(),
Recruiter.find({ opco }).select({ establishment_id: 1, origin: 1, jobs: 1, _id: 0 }).lean(),
Expand Down

0 comments on commit c211a13

Please sign in to comment.