[SOLVED ]Problem accessing collection when runing percolate:synced-cron job on Galaxy


I’m trying to run a scheduled job on my Galaxy server to update some documents once a day. This works fine on my local server but on Galaxy a collection.find({}).count() returns 0 for some reason.

Any one have any idea why I don’t seem to have access to the documents when running the job on Galaxy?

Edit: Suddenly the collection.find({}).count() began returning the right number of documents but the update still doesn’t work.

Edit2: Turned out not to be an access problem but a problem when entering a date from a form.