Skip to content

Commit

Permalink
Merge pull request #752 from HDRUK/bug/GAT-1094
Browse files Browse the repository at this point in the history
bug/GAT-1094
  • Loading branch information
cdjreekie authored May 19, 2022
2 parents cbe8beb + fef15d9 commit 5d57b62
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/resources/datarequest/datarequest.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -2177,8 +2177,8 @@ export default class DataRequestController extends Controller {
options
));
// Get the name of the publishers word template
let publisherTemplate = await PublisherModel.findOne({ name: publisher }, { wordTemplate: 1, _id: 0 }).lean();
let templateName = publisherTemplate.wordTemplate;
let publisherTemplate = await PublisherModel.findOne({ name: publisher }, { _id: 0 }).lean();
let templateName = publisherTemplate.wordTemplate;
// Send emails to custodian team members who have opted in to email notifications
if (emailRecipientType === 'dataCustodian') {
emailRecipients = [...custodianManagers];
Expand Down
2 changes: 1 addition & 1 deletion src/resources/publisher/publisher.model.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const PublisherSchema = new Schema(
federation: {
active: { type: Boolean },
auth: { type: Object, select: false },
endpoints: { type: Boolean, select: false },
endpoints: { type: Object, select: false },
notificationEmail: { type: Array, select: false },
},
},
Expand Down

0 comments on commit 5d57b62

Please sign in to comment.