Encontrar o valor da promessa com a sintaxe
Promise.resolve("XXXX").then(value=>
console.log(value));
/*NOT*/
console.log(Promise.resolve("XXXX").then(value=> value));
/*do your work inside of the then()*/
Javasper