db.run(`UPDATE moneyset SET answer = NULL WHERE userID = '${user.id}'`, (err) => {
if (err) throw err;
console.log(this)
console.log(`Template literal ${this}`);
});
According to the tutorial on https://www.sqlitetutorial.net/sqlite-nodejs/update the results I should expect is at least something in this
object but what I receive is empty object.
console log:
> {}
> Template literal [object Object]
The results of the .run()
function can be seen in database so object should not be empty.