Async method as an expression in ternary expression
I’m trying to call an async method inside a ternary expression as a condition, yet the execution of the code isn’t working as expected. Could someone explain to me why this : req.user.user_id === …