_.unique -> _.uniq && _.pluck -> _.map
This commit is contained in:
@ -112,7 +112,7 @@ module.exports = {
|
||||
snapshot: '_all'
|
||||
})
|
||||
.then(function (resp) {
|
||||
return _.pluck(resp.snapshots, 'snapshot');
|
||||
return _.map(resp.snapshots, 'snapshot');
|
||||
}, function () {
|
||||
return [];
|
||||
})
|
||||
@ -121,13 +121,13 @@ module.exports = {
|
||||
repository: repo,
|
||||
snapshot: snapshot
|
||||
});
|
||||
}, {concurrency: 1})
|
||||
}, { concurrency: 1 })
|
||||
.then(function () {
|
||||
return client.snapshot.deleteRepository({
|
||||
repository: repo
|
||||
});
|
||||
});
|
||||
}, {concurrency: 1})
|
||||
}, { concurrency: 1 })
|
||||
]);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user