deploy endpoint: clean-up hack

This commit is contained in:
Austen Collins 2015-09-18 13:23:33 -07:00
parent c869a57000
commit 3477bc080e

View File

@ -463,7 +463,13 @@ ApiDeployer.prototype._buildEndpoints = Promise.method(function() {
.then(_this._createEndpointMethod)
.then(_this._createEndpointIntegration)
.then(_this._createEndpointMethodResponses)
.then(_this._createEndpointMethodIntegResponses);
.then(_this._createEndpointMethodIntegResponses)
.then(function() {
// Clean-up hack
// TODO figure out how "apig" temp property is being written to the awsm's json and remove that
if (endpoint.apiGateway.apig) delete endpoint.apiGateway.apig;
});
});
});