Fix workspace creation with index enabled (#7013)

This commit is contained in:
Andrey Sobolev
2024-10-22 21:42:40 +07:00
committed by GitHub
parent 5e234a0646
commit afcc25beca
12 changed files with 103 additions and 128 deletions
@@ -271,7 +271,6 @@ async function processMigrateMarkupFor (
client: MigrationClient,
iterator: MigrationIterator<DocSyncInfo>
): Promise<void> {
let processed = 0
while (true) {
const docs = await iterator.next(1000)
if (docs === null || docs.length === 0) {
@@ -298,9 +297,6 @@ async function processMigrateMarkupFor (
if (operations.length > 0) {
await client.bulk(DOMAIN_GITHUB, operations)
}
processed += docs.length
console.log('...processed', processed)
}
}