Skip to content

Commit

Permalink
codeql fix
Browse files Browse the repository at this point in the history
  • Loading branch information
FancMa01 committed Jan 25, 2024
1 parent eb2da58 commit f8419f2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/routes/orbit/read.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,8 @@ router.get(
const { application_id, keyword } = req.params;
if (!application_id) throw Error("Invalid app ID");

if (!typeof keyword === "string") throw Error("Invalid keyword");

const query = `select Name from DimBuildInstance where Name like '%${keyword}%' and Name not like 'Scrub%' and EnvironmentName = 'Insurance' order by Name asc`;

const result = await runSQLQuery(query, dbConfig);
Expand Down

0 comments on commit f8419f2

Please sign in to comment.