Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions scripts/force-index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ async function getJwtClient() {
async function forceIndexUrls(jwtClient, urls) {
const indexing = google.indexing({ version: 'v3', auth: jwtClient });

for (const url of urls) {
await Promise.all(urls.map(async (url) => {
try {
const res = await indexing.urlNotifications.publish({
requestBody: {
Expand All @@ -50,7 +50,7 @@ async function forceIndexUrls(jwtClient, urls) {
} catch (err) {
console.error(`Failed to request indexing for ${url}:`, err.message);
}
}
}));
}

async function main() {
Expand Down