Skip to content

Commit

Permalink
refactor: homogénéise -> msg de succès dans l'envoi de l'email de son…
Browse files Browse the repository at this point in the history
…dage
  • Loading branch information
Shamzic committed Nov 27, 2023
1 parent 9491fd9 commit 258b8aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/lib/messaging/sending.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ async function sendMultipleInitialEmails(limit: number) {

try {
const survey = await sendSurveyEmail(followup, surveyType)
return { "survey id": survey._id }
return { survey_id: survey._id }
} catch (error) {
return { ko: error }
}
Expand Down Expand Up @@ -99,7 +99,7 @@ async function sendMultipleTousABordNotificationEmails(limit: number) {
followup,
SurveyType.TousABordNotification
)
return { ok: survey._id }
return { survey_id: survey._id }
} catch (error) {
return { ko: error }
}
Expand Down

0 comments on commit 258b8aa

Please sign in to comment.