Skip to content

Commit

Permalink
fixup! fix(contentful-import): bump batch libs version
Browse files Browse the repository at this point in the history
  • Loading branch information
Khaledgarbaya committed Nov 16, 2016
1 parent 2a669ef commit eaee4ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion bin/contentful-import
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ log.info('Contentful Import Tool: \n' +

// Give the user sometime to read the welcome message
setTimeout(function(){
runContentfulImport(usageParams)
runContentfulImport(usageParams).then((result) => {
process.exit(0)
})
.catch(function(err){
log.error('Failed within\n', err)
process.exit(1)
Expand Down
2 changes: 1 addition & 1 deletion lib/run-contentful-import.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default function runContentfulImport (usageParams) {
opts.content = usageParams.content
}
const clients = createClients(opts)

opts.content.webhooks = opts.content.webhooks || []
return Promise.props({
source: opts.content,
destination: getTransformedDestinationResponse({
Expand Down

0 comments on commit eaee4ae

Please sign in to comment.