Skip to content

Commit

Permalink
feat: add getSitesByOrganizationIDWithLatestAudits query
Browse files Browse the repository at this point in the history
  • Loading branch information
alinarublea committed Jan 29, 2024
1 parent 72895da commit 002f3d8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ export const getSitesByOrganizationIDWithLatestAudits = async (
const sitesMap = new Map(sites.map((site) => [site.getId(), site]));
const orderedSites = [];

// First, append sites with a latest audit in the sorted order
// Append just sites with a latest audit in the sorted order
latestAudits.forEach((audit) => {
const site = sitesMap.get(audit.getSiteId());
if (site) {
Expand Down

0 comments on commit 002f3d8

Please sign in to comment.