Skip to content

Commit

Permalink
Merge pull request #753 from SSWConsulting/api-fix
Browse files Browse the repository at this point in the history
Quick fix to check scan results using api key
  • Loading branch information
zacharykeeping authored Nov 3, 2023
2 parents eac7952 + 8b29df2 commit 149bfae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/functions/queries.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ exports.getScanDetails = async (runId) => {
let filter;

if (scan.scanResultVersion === 2) {
filter = `PartitionKey eq '${scan.partitionKey}-${slug(scan.url)}'`;
filter = `PartitionKey eq '${scan.apiKey}-${slug(scan.url)}'`;
} else {
filter = odata`PartitionKey eq ${scan.partitionKey} and src ge ${scan.url} and src le ${incrementString(scan.url)}`;
}
Expand Down

0 comments on commit 149bfae

Please sign in to comment.