Skip to content

Commit

Permalink
fix: somes sec fixes (#927)
Browse files Browse the repository at this point in the history
* fix: ressource inutile ici

* fix: destructuration à revoir

* chore: cleaning
  • Loading branch information
alanlr authored Dec 18, 2023
1 parent 5039ca9 commit 58503ed
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
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

0 comments on commit 58503ed

Please sign in to comment.