Skip to content

Commit

Permalink
feat: include the questions and answers under the 'Sample' section to…
Browse files Browse the repository at this point in the history
… Xpress email notification. #1343 (#954)
  • Loading branch information
bashanlam authored Feb 20, 2025
2 parents 1b0a37a + 14c32ef commit 2bd967b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/backend/src/statusActionEngine/statusActionUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,10 @@ export const getEmailReadyArrayOfUsersAndProposals = async (
);
for (const step of await questionarySteps) {
const stepFields = step.fields.map((field) => field);
if (step.topic.title.toUpperCase() === 'SAMPLES') {
if (
step.topic.title.toUpperCase() === 'SAMPLES' ||
step.topic.title.toUpperCase() === 'SAMPLE'
) {
const answers = await stepAnswers(
stepFields,
proposal.primaryKey
Expand Down

0 comments on commit 2bd967b

Please sign in to comment.