mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 18:13:29 +01:00
fix: properly create index
This commit is contained in:
@@ -57,7 +57,8 @@ try {
|
||||
await Promise.all(
|
||||
indices.map(async (index) => {
|
||||
console.log(`Uploading ${index.index}...`);
|
||||
return client.index(index.index).addDocuments(index.data);
|
||||
await client.createIndex(index.index);
|
||||
await client.index(index.index).addDocuments(index.data);
|
||||
}),
|
||||
);
|
||||
} catch {}
|
||||
|
||||
Reference in New Issue
Block a user