Mongoose returns the data as its schema class. It doesn't return raw json
(though I bet you could make it do so)
On Oct 24, 2013 5:24 PM, "Dean Sofer" <notifications@github.com> wrote:

> In lib/commands.js:
>
> > @@ -3,20 +3,14 @@ var models   = require('./models');
> >  models.channel.find({}, function(err, rows){
> >    rows.forEach(function(channel){
> >      console.log('Joining "'+channel.name+'"...');
> > -    commands.channels[channel.name] = new models.channel({
> > -      name: channel.name,
> > -      commands: channel.commands
> > -    });
> > +    commands.channels[channel.name] = channel;
>
> mongoose returns pre-wrapped channel objects?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/UniBot/UniBot/pull/15/files#r7203629>
> .
>