Corrections to promise handling around buildFeed function.