Skip to content

Commit

Permalink
Merge pull request #5428 from mozilla/MNTOR-3888
Browse files Browse the repository at this point in the history
MNTOR-3888: add orderby for link
  • Loading branch information
mansaj authored Dec 18, 2024
2 parents 28b4da2 + 6028199 commit c54e991
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/db/tables/onerep_scans.ts
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,7 @@ async function getScanResultsWithBrokerUnderMaintenance(
.andWhere("sr.manually_resolved", "false")
.andWhereNot("sr.status", "removed")
.join("onerep_data_brokers as db", "sr.data_broker", "db.data_broker")
.orderBy("link")
.orderBy("sr.onerep_scan_result_id");

scanResults = scanResults.filter(
Expand Down Expand Up @@ -475,6 +476,7 @@ async function getScanResultsWithBroker(
.innerJoin("onerep_scans as s", "sr.onerep_scan_id", "s.onerep_scan_id")
.where("s.onerep_profile_id", onerepProfileId)
.join("onerep_data_brokers as db", "sr.data_broker", "db.data_broker")
.orderBy("link")
.orderBy("sr.onerep_scan_result_id");
} else {
scanResults = (await getLatestOnerepScanResults(onerepProfileId)).results;
Expand Down

0 comments on commit c54e991

Please sign in to comment.