fix prepare deployment endpoint
removed some unneeded code
Merge pull request #544 from claymccoy/prepareDeploymentEndpointImprovements

fix prepare deployment endpoint