I am needing help with the following code snippet:
$db.get(id).then (
async function(data) {
console.log('true')
}
function(error) {
console.log(error + "error when retriving data from stored custom object data")
});
I cannot get the ‘true’ to log to the console. It seems as the promise coming from the $db.set() function does not follow the async/ await process either as through testing when the data is stored into an item and/or returned the data will be console logged after other checkpoints in my code. I need some guidance on how to proceed with this.