Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
kevbarns committed Dec 5, 2023
1 parent f5f928e commit 23bedb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/src/jobs/verifications/controlApplications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import { notifyToSlack } from "../../common/utils/slackUtils"

export const controlApplications = async () => {
const timestamp = dayjs().subtract(1, "hour").toDate()
const countAppointments = await Application.countDocuments({ created_at: { $gte: timestamp } })
if (countAppointments === 0) {
const countApplications = await Application.countDocuments({ created_at: { $gte: timestamp } })
if (countApplications === 0) {
await notifyToSlack({ subject: "Verification des candidatures", message: "Aucune candidature prise dans la dernière heure" })
}
}

0 comments on commit 23bedb3

Please sign in to comment.