Skip to content

Commit

Permalink
Fix for publisher name getting used instead of publisher id
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul McCafferty committed May 14, 2021
1 parent e6fce60 commit 178c2c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resources/datarequest/datarequest.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -2115,7 +2115,7 @@ module.exports = {
`A Data Access Request has been submitted to ${publisher} for ${datasetTitles} by ${appFirstName} ${appLastName}`,
'data access request received',
accessRecord._id,
accessRecord.datasets[0].publisher.name
accessRecord.datasets[0].publisher._id.toString()
);
} else {
const dataCustodianEmail = process.env.DATA_CUSTODIAN_EMAIL || contactPoint;
Expand Down

0 comments on commit 178c2c3

Please sign in to comment.