Skip to content

Commit

Permalink
fix: match resources scheme with backend
Browse files Browse the repository at this point in the history
  • Loading branch information
seia-soto committed Oct 14, 2024
1 parent 6f96fcb commit 8a23810
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/update.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ async function downloadResource(resourceName) {

function extractRedirects(data) {
const resources = JSON.parse(data);
const mappings = resources.redirects.map(redirect => redirect.names);
const mappings = resources.redirects.map(redirect => [redirect.name, ...(redirect.aliases ?? [])]);
return JSON.stringify(mappings);
}

Expand Down

0 comments on commit 8a23810

Please sign in to comment.