You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From mongoose V7, async functions will throw an error if we pass a callback (and so will skip his job) .
I saw this async functions was added years ago (4.3.8-pre) : Automattic/mongoose@21f0104
so, I think we can migrate to full promise (removing callback) without problems .
Also, we already use promises, but, passing the "resolve" function to the callback .
Actually, stopping a moleculer service, will not close the connection ( close will throw before really closing the connection )