Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
niuhf0452 committed Sep 20, 2018
1 parent f5868d3 commit 21d82a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ function fetchComponents (baseURL, auth, repository, filters, number) {
if (token) {
qs.continuationToken = token
}
return request('GET', baseURL + '/beta/components', qs, {
return request('GET', `${baseURL}/beta/components`, qs, {
'Authorization': auth
}).then(resp => {
process.stdout.write('.')
Expand Down Expand Up @@ -436,7 +436,7 @@ function deleteComponents (baseURL, auth, repository, filters, number) {
}
}

return fetchComponents(auth, repository, filters, number).then(arr => {
return fetchComponents(baseURL, auth, repository, filters, number).then(arr => {
if (arr.length > 0) {
arr.forEach(v => {
console.log(`${v.group}:${v.name}:${v.version}`)
Expand Down

0 comments on commit 21d82a9

Please sign in to comment.