I am iterating over an array and for each object in the array I need to make an api call. And then in the .done of the said call I need to update the object that was used to