chore: typo

This commit is contained in:
iCrawl
2023-11-08 00:38:35 +01:00
parent ee2afb0aae
commit 347df4e083
5 changed files with 15 additions and 17 deletions

View File

@@ -1,5 +1,5 @@
name: 'Upload search indicies'
description: 'Uploads the search indicies to a meilisearch database'
name: 'Upload search indices'
description: 'Uploads the search indices to a meilisearch database'
runs:
using: node20
main: ../../dist/uploadSearchIndicies/index.js
main: ../../dist/uploadSearchIndices/index.js

View File

@@ -29,7 +29,7 @@ const client = new MeiliSearch({
try {
console.log('Generating all indices...');
const indicies = await generateAllIndices({
const indices = await generateAllIndices({
fetchPackageVersions: async (pkg) => {
console.log(`Fetching versions for ${pkg}...`);
const { rows } = await sql.execute('select version from documentation where name = ?', [pkg]);
@@ -52,7 +52,7 @@ try {
console.log('Generated all indices.');
console.log('Uploading indices...');
for (const index of indicies) {
for (const index of indices) {
console.log(`Uploading ${index.index}...`);
await client.index(index.index).addDocuments(index.data);
}