Finish migration from callback to promises at server-side.