diff --git a/controllers/Temp.js b/controllers/Temp.js index 3fef8eb7..727a5307 100644 --- a/controllers/Temp.js +++ b/controllers/Temp.js @@ -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.')) }