From fe6cfc32859ee388e502d94fa1053fb84957344f Mon Sep 17 00:00:00 2001 From: Laurie Reynolds Date: Tue, 22 Oct 2024 07:54:14 -0700 Subject: [PATCH] Update packages/server/src/lib/email.js Co-authored-by: Tyler Hendrickson <1851017+TylerHendrickson@users.noreply.github.com> --- packages/server/src/lib/email.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/src/lib/email.js b/packages/server/src/lib/email.js index 359284cc01..f29a0a0e05 100644 --- a/packages/server/src/lib/email.js +++ b/packages/server/src/lib/email.js @@ -423,7 +423,7 @@ async function sendGrantAssignedEmails({ grantId, agencyIds, userId }) { i. Send email */ try { - const grant = await db.getGrant({ grantId, showForecastedGrants: process.env.SHOW_FORECASTED_GRANTS }); + const grant = await db.getGrant({ grantId, showForecastedGrants: process.env.SHOW_FORECASTED_GRANTS === 'true' }); const grantDetail = await buildGrantDetail(grant, notificationType.grantAssignment); const agencies = await db.getAgenciesByIds(agencyIds); await asyncBatch(