Fix error b/c not returning promise in legacy api call