Update get phases api

1. Update current phase logic in get phases api