darkterra / mongo-scheduler

Persistent event schedule for node.js using mongo as storage
MIT License
8 stars 8 forks source link

scheduler.list() query filter not working. #15

Closed AlexanderProd closed 5 years ago

AlexanderProd commented 5 years ago

I've noticed when using scheduler.list() the filter is not working, instead of the events that match the filter everything is returned. I've tested filters that should've worked with mongoDB.

my passed options object looks like this.

{ 
   bySchedule: true, 
   { 
      'data.text': 
      'sampleText' 
   } 
}

Can you check if query filtering works for you? I'm using the latest version 2.1.3.