How to do i properly use Meteor.bindEnvironment(). Alongside my project, im also manning some server side routes that make calls to mongo. Im getting an error that i need to run my async code in a fiber (actually trying to import and use fibers breaks everything) and it tells me to use bindEnvironment()
How to do i properly use Meteor.bindEnvironment(). Alongside my project, im also manning some server side routes that make calls to mongo. Im getting an error that i need to run my async code in a fiber (actually trying to import and use fibers breaks everything) and it tells me to use bindEnvironment()
you should stop using bindEnvironment and use async and await
Like this : github.com/guidouil/TorrentsDuck/b...
But if you really need a bindEnvirinment here is one of mine old code
and inside the non fiber code you call this function with parameters
awesome thank you