-- Fixed the issue of promises not passing the parameters.