This commit is contained in:
Namrata Jha
2021-12-20 09:31:36 +00:00
committed by GitHub
parent 04947a51f3
commit 106b04e076
2 changed files with 3 additions and 7 deletions
+2 -4
View File
@@ -121,12 +121,10 @@ export function deleteVersions(input: Input): Observable<boolean> {
}
const result = finalIds(input)
result.pipe(
tap(value => (input.numDeleted = value.length < 100 ? value.length : 100))
)
console.log(`${input.numDeleted} versions will be deleted`)
return result.pipe(
tap(value => (input.numDeleted = value.length < 100 ? value.length : 100)),
tap(() => console.log(`${input.numDeleted} versions will be deleted`)),
concatMap(ids => deletePackageVersions(ids.slice(0, 100), input.token))
)
}