I've followed all guidelines from MS writing Azure Function. Somehow have to use .done() else client (Postman) won't see any returns:
module.exports = async function(context)
{
...
const result = await aPromise().catch((bad)=>
{
context.res = {status: 401, body: "bad"};
context.done(); // needed so client can get the above res
});
}
Does it mean the return is not a Promise?

