Skip to content

Commit

Permalink
fix: updatedAt
Browse files Browse the repository at this point in the history
  • Loading branch information
kevbarns committed Jun 26, 2024
1 parent 2ba102e commit 15b7723
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/src/http/controllers/user.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export default (server: Server) => {
throw Boom.badRequest("L'email est déjà utilisé", { error: BusinessErrorCodes.EMAIL_ALREADY_EXISTS })
}
if (opco) {
const entreprise = await getDbCollection("entreprises").findOneAndUpdate({ siret }, { $set: { opco, updateAt: new Date() } }, { returnDocument: "after" })
const entreprise = await getDbCollection("entreprises").findOneAndUpdate({ siret }, { $set: { opco, updatedAt: new Date() } }, { returnDocument: "after" })
if (!entreprise) {
throw Boom.badRequest(`pas d'entreprise ayant le siret ${siret}`)
}
Expand Down
2 changes: 1 addition & 1 deletion server/src/jobs/database/fixDiffusibleCompanies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const deactivateRecruiter = async (recruiter: IRecruiter) => {
job.job_status = JOB_STATUS.ACTIVE ? JOB_STATUS.ANNULEE : job.job_status
}

await getDbCollection("recruiters").updateOne({ _id: recruiter._id }, { $set: { ...recruiter, updateAt: new Date() } })
await getDbCollection("recruiters").updateOne({ _id: recruiter._id }, { $set: { ...recruiter, updatedAt: new Date() } })
}

const deactivateEntreprise = async (entreprise: IEntreprise) => {
Expand Down

0 comments on commit 15b7723

Please sign in to comment.