Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: somes sec fixes #927

Merged
merged 3 commits into from
Dec 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion server/src/services/formulaire.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const getOffreAvecInfoMandataire = async (id: string | ObjectId): Promise
* @param {number} payload.limit
*/
export const getFormulaires = async (query: FilterQuery<IRecruiter>, select: object, { page, limit }: { page?: number; limit?: number }) => {
const response = await Recruiter.paginate({ query, ...select, page, limit, lean: true })
const response = await Recruiter.paginate({ query, select, page, limit, lean: true })

return {
pagination: {
Expand Down
4 changes: 1 addition & 3 deletions shared/routes/formulaire.route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ export const zFormulaireRoute = {
securityScheme: {
auth: "access-token",
access: null,
resources: {
recruiter: [{ establishment_id: { type: "params", key: "establishment_id" } }],
},
resources: {},
},
},
"/formulaire/offre/f/:jobId": {
Expand Down
2 changes: 1 addition & 1 deletion shared/routes/v1Jobs.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export const zV1JobsRoutes = {
"/v1/jobs/bulk": {
method: "get",
path: "/v1/jobs/bulk",
// TODO_SECURITY_FIX il faut faire quelque chose car sinon nous allons claquer des fesses
// TODO_SECURITY_FIX
querystring: z
.object({
query: z
Expand Down