Skip to content

Commit

Permalink
fix(api): reset certification blocks when switching DFF eligibility s…
Browse files Browse the repository at this point in the history
…tatus
  • Loading branch information
ThomasDos committed Nov 29, 2024
1 parent fffdc64 commit 3e042fb
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,15 @@ export const createOrUpdateEligibilityRequirement = async ({
dffCertificationCompetenceDetails: {
deleteMany: {},
},
dffCertificationCompetenceBlocs: {
updateMany: {
where: {},
data: {
text: "",
complete: false,
},
},
},
competenceBlocsPartCompletion: "TO_COMPLETE",
},
});
Expand Down

0 comments on commit 3e042fb

Please sign in to comment.