Skip to content

Commit

Permalink
Check feature is enabled before including followed_by_agencies data (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerHendrickson authored Jan 7, 2025
1 parent e659e1d commit 728d2e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/server/src/routes/grants.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ router.get('/exportCSVNew', requireUser, async (req, res) => {
: grant.viewed_by_agencies
.map((v) => v.agency_abbreviation)
.join(', '),
followed_by_agencies: grant.followed_by_agencies
followed_by_agencies: process.env.ENABLE_FOLLOW_NOTES === 'true' ? grant.followed_by_agencies
.map((v) => v.agency_name)
.join(', '),
.join(', ') : [],
open_date: new Date(grant.open_date).toLocaleDateString('en-US', { timeZone: 'UTC' }),
close_date: new Date(grant.close_date).toLocaleDateString('en-US', { timeZone: 'UTC' }),
url: `https://www.grants.gov/search-results-detail/${grant.grant_id}`,
Expand Down

0 comments on commit 728d2e0

Please sign in to comment.