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
A Bluebird promise is expected to be return when you pass a function in to loadGroups, which means it does not work with async/await.
The current work around is to just pass in the results of calling your async function, since trivial perms calls Promise.resolve on anything that is passed in, and not a function, which both resolves async functions, and wraps it in the expected bluebird promise.
Frankly, we need to remove the bluebird dependency now that Promises are standard.
The text was updated successfully, but these errors were encountered:
A Bluebird promise is expected to be return when you pass a function in to
loadGroups
, which means it does not work withasync/await
.The current work around is to just pass in the results of calling your async function, since trivial perms calls
Promise.resolve
on anything that is passed in, and not a function, which both resolves async functions, and wraps it in the expected bluebird promise.Frankly, we need to remove the bluebird dependency now that Promises are standard.
The text was updated successfully, but these errors were encountered: