From 2bbb1b78d8c96f7dcfe6a3f71015036be2b1b9b7 Mon Sep 17 00:00:00 2001 From: Alan Le Ruyet Date: Wed, 11 Sep 2024 09:54:27 +0200 Subject: [PATCH] fix: status correct --- .../jobs/offrePartenaire/cancelRemovedJobsPartners.test.ts | 2 -- server/src/jobs/offrePartenaire/cancelRemovedJobsPartners.ts | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/server/src/jobs/offrePartenaire/cancelRemovedJobsPartners.test.ts b/server/src/jobs/offrePartenaire/cancelRemovedJobsPartners.test.ts index b1dcd70b30..f098523bf5 100644 --- a/server/src/jobs/offrePartenaire/cancelRemovedJobsPartners.test.ts +++ b/server/src/jobs/offrePartenaire/cancelRemovedJobsPartners.test.ts @@ -52,7 +52,5 @@ describe("Canceling jobs_partners that have been removed from computed_jobs_part // aucun éléments de jobs_partners n'a été retiré de la collection const countJobsPartners = await getDbCollection("jobs_partners").countDocuments({}) expect.soft(countJobsPartners).toEqual(5) - - //gérer les cas de partner_label et job_partner_id différents pour vérifier la compréhension de l'unicité }) }) diff --git a/server/src/jobs/offrePartenaire/cancelRemovedJobsPartners.ts b/server/src/jobs/offrePartenaire/cancelRemovedJobsPartners.ts index 1b7571d76d..f821fe1aae 100644 --- a/server/src/jobs/offrePartenaire/cancelRemovedJobsPartners.ts +++ b/server/src/jobs/offrePartenaire/cancelRemovedJobsPartners.ts @@ -1,4 +1,4 @@ -import { JOB_STATUS } from "shared/models" +import { JOB_STATUS_ENGLISH } from "shared/models" import { getDbCollection } from "@/common/utils/mongodbUtils" @@ -26,7 +26,7 @@ export const cancelRemovedJobsPartners = async () => { }, }, { - $set: { offer_status: JOB_STATUS.ANNULEE }, + $set: { offer_status: JOB_STATUS_ENGLISH.ANNULEE }, }, { $unset: "matched",