Como construir uma promessa Bluebird que retorna uma string constante?
Se eu tiver algo parecido com isto
return this.retrieveArticles(blogId).then(function(response){
return response.articles;
}).then(_).call("findWhere", match).then(function(article){
return {
"article": article
}
});
e eu decido cortar a parte superior
return response.articles;
}).then(_).call("findWhere", match).then(function(article){
return {
"article": article
}
});
Como faço algo como
Promise.return(articles).then(_).call("findWhere", match).then(function(article){
return {
"article": article
}
});