Skip to content

Commit

Permalink
fixing some entity issues that have entry numbers (due to duplicate r…
Browse files Browse the repository at this point in the history
…eference issue)
  • Loading branch information
GeorgeGoodall committed Jan 15, 2025
1 parent 309f105 commit 17256ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/middleware/entryIssueDetails.middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const prepareEntry = (req, res, next) => {

const issue = entryIssues[0]

if (!issue.entry_number || !issue.issue_type || typeof issue.line_number !== 'number') {
if (!(issue.entry_number || issue.entity) || !issue.issue_type || typeof issue.line_number !== 'number') {
const error = new Error('Invalid entry issue structure')
error.status = 500
return next(error)
Expand Down

0 comments on commit 17256ce

Please sign in to comment.