fix delete count update condition
This commit is contained in:
Vendored
+1
-1
@@ -59,7 +59,7 @@ function finalIds(input) {
|
|||||||
return getVersionIds(input.owner, input.repo, input.packageName, 100, input.ignoreVersions, '', input.token).pipe(operators_1.map(value => {
|
return getVersionIds(input.owner, input.repo, input.packageName, 100, input.ignoreVersions, '', input.token).pipe(operators_1.map(value => {
|
||||||
console.log(`point 1`);
|
console.log(`point 1`);
|
||||||
const toDelete = totalCount -
|
const toDelete = totalCount -
|
||||||
value.filter(info => !input.ignoreVersions.test(info.version))
|
value.filter(info => input.ignoreVersions.test(info.version))
|
||||||
.length -
|
.length -
|
||||||
input.minVersionsToKeep;
|
input.minVersionsToKeep;
|
||||||
console.log(`toDelete: ${toDelete} numVersions: ${input.numOldVersionsToDelete} total count: ${totalCount}`);
|
console.log(`toDelete: ${toDelete} numVersions: ${input.numOldVersionsToDelete} total count: ${totalCount}`);
|
||||||
|
|||||||
+1
-1
@@ -104,7 +104,7 @@ export function finalIds(input: Input): Observable<string[]> {
|
|||||||
console.log(`point 1`)
|
console.log(`point 1`)
|
||||||
const toDelete =
|
const toDelete =
|
||||||
totalCount -
|
totalCount -
|
||||||
value.filter(info => !input.ignoreVersions.test(info.version))
|
value.filter(info => input.ignoreVersions.test(info.version))
|
||||||
.length -
|
.length -
|
||||||
input.minVersionsToKeep
|
input.minVersionsToKeep
|
||||||
console.log(
|
console.log(
|
||||||
|
|||||||
Reference in New Issue
Block a user