$q.when isn't needed here as we're already in a promise chain