Skip to content

Commit

Permalink
fix: status correct
Browse files Browse the repository at this point in the history
  • Loading branch information
alanlr committed Sep 11, 2024
1 parent 567f9cc commit 2bbb1b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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é
})
})
4 changes: 2 additions & 2 deletions server/src/jobs/offrePartenaire/cancelRemovedJobsPartners.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { JOB_STATUS } from "shared/models"
import { JOB_STATUS_ENGLISH } from "shared/models"

import { getDbCollection } from "@/common/utils/mongodbUtils"

Expand Down Expand Up @@ -26,7 +26,7 @@ export const cancelRemovedJobsPartners = async () => {
},
},
{
$set: { offer_status: JOB_STATUS.ANNULEE },
$set: { offer_status: JOB_STATUS_ENGLISH.ANNULEE },
},
{
$unset: "matched",
Expand Down

0 comments on commit 2bbb1b7

Please sign in to comment.