Convert resolveOrder to use a promise API.