Updated flexo map/fold for promises