Skip to content

Commit

Permalink
feat: update slack notification (#874)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevbarns authored Nov 29, 2023
1 parent eedd5b7 commit 5a7a889
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/src/http/routes/etablissementRecruteur.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ import {
createUser,
getUser,
getUserStatus,
updateLastConnectionDate,
sendWelcomeEmailToUserRecruteur,
setUserHasToBeManuallyValidated,
updateLastConnectionDate,
updateUser,
} from "../../services/userRecruteur.service"
import { Server } from "../server"
Expand Down Expand Up @@ -210,7 +210,7 @@ export default (server: Server) => {
newCfa = await setUserHasToBeManuallyValidated(newCfa._id)
await notifyToSlack({
subject: "RECRUTEUR",
message: `Nouvel OF en attente de validation - ${newCfa.email} - https://referentiel.apprentissage.beta.gouv.fr/organismes/${newCfa.establishment_siret}`,
message: `Nouvel OF en attente de validation - https://referentiel.apprentissage.beta.gouv.fr/organismes/${newCfa.establishment_siret}`,
})
// Keep the same structure as ENTREPRISE
return res.status(200).send({ user: newCfa })
Expand Down

0 comments on commit 5a7a889

Please sign in to comment.