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
const newSurveyFromMail = Meteor.bindEnvironment((senderMail, senderName, event) => { Meteor.call('newSurveyFromMail', senderMail, senderName, event); return true; });
and inside the non fiber code you call this function with parameters
awesome thank you
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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