Function returns promise object instead of value (async/await) [duplicate]

Function returns promise object instead of value (async/await) [duplicate]

More to explore