Skip to content

Commit

Permalink
fix: asset name in logs [ZEND-5790]
Browse files Browse the repository at this point in the history
  • Loading branch information
jjolton-contentful committed Jan 7, 2025
1 parent f3fc4a1 commit 4195227
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 14 deletions.
3 changes: 2 additions & 1 deletion lib/tasks/download-assets.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ export default function downloadAssets (options) {
return startingPromise
.then(downloadAsset)
.then((downLoadedFile) => {
task.output = `${figures.tick} downloaded ${getEntityName(downLoadedFile)} (${url})`
const name = path.basename(downLoadedFile)
task.output = `${figures.tick} downloaded ${getEntityName({ name })} (${url})`
successCount++
})
.catch((error) => {
Expand Down
16 changes: 4 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"bluebird": "^3.3.3",
"cli-table3": "^0.6.0",
"contentful": "^11.1.4",
"contentful-batch-libs": "^9.4.1",
"contentful-batch-libs": "^10.1.1",
"contentful-management": "^11.36.0",
"date-fns": "^4.1.0",
"figures": "^3.2.0",
Expand Down

0 comments on commit 4195227

Please sign in to comment.