Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}).then((answers)=>{
var params = {
write_key: config.bucket.write_key,
slug: response.object.slug,
type_slug: 'notes',
title: answers.newText,
content: ''
}
Cosmic.editObject(config, params, (error, response)=>{
if(response.object){
console.log(chalk.green("\u2713" + " Success"))
}
MainMenu()
})
})