I'm facing a strange issue as I am able to retrieve only the values of an instance in other parts of my code without any problems. Can you spot what might be wrong with my current code?
app.get('/profile', checkAuth, function(req, res) {
var useObj = req.user;
var guilds = req.user.guilds;
User.findAll({
where: { userid: useObj.id },
include: [{
model: Guild
}]
}).then(function(group) {
console.log(group.get({
plain: true
}))
})
});