async function main() {
console.log("Start")
await Author.create({name: 'Some Guy'}, function (err, awesome_instance) {
console.log("This should be next, but its not")
});
console.log("This should be last, but it's not")
}
main()
The final log statement is logging before the second. Why is this the case if I'm using await
?