Skip to content

Commit

Permalink
Fixed temp/reportUser marking valid report options as invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian-Webster committed Sep 20, 2023
1 parent a1f7df5 commit d7e8418
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/Temp.js
Original file line number Diff line number Diff line change
Expand Up @@ -5628,7 +5628,7 @@ class TempController {
return resolve(HTTPWTHandler.badInput(`reportType object must have a subTopic key`))
}

if (DEFAULTS.validReportOptions[reportType?.topic]?.includes(reportType?.subTopic)) {
if (!DEFAULTS.validReportOptions[reportType?.topic]?.includes(reportType?.subTopic)) {
return resolve(HTTPWTHandler.badInput('Invalid report options provided.'))
}

Expand Down

0 comments on commit d7e8418

Please sign in to comment.