Ok, I like this.  But I think every error (if couldnt be solved) should be
sent to Mosto so it is able to inform Caspa.


2013/4/10 Tomas Neme <notifications@github.com>

> In drivers/playlists/mongo-driver.js:
>
> > -                if( err ) {
> > -                    console.log(err);
> > -                } else if( sched ) {
> > -                    console.log("Processing sched:", sched);
> > -                    self.createPlaylist(sched, self.newPlaylistCallback);
> > -                } else {
> > -                    console.log('Done');
> > -                }
> > -            });
> > +        var boundaries = self.setBoundaries(from, to);
> > +        self.scheds.findItems({
> > +            start: { $lte: boundaries.to.unix()},
> > +            end: { $gte: boundaries.from.unix() }
> > +        }, function(err, scheds) {
> > +            if( err ) {
> > +                console.log(err);
>
> I think it's irrelevant because it's not an error like "the playlist is
> malformed", it's something at the DB level that means either a DB
> disconnection or some error in the code. In any case, we could define
> 'createError' 'updateError', etc events and emit both with the same message
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/inaes-tic/mbc-mosto/pull/38/files#r3746688>
> .
>