diff --git a/app.js b/app.js index 1c59b7d..dcb6cc6 100644 --- a/app.js +++ b/app.js @@ -536,14 +536,15 @@ define(function(require){ var self = this; self.getFaxDetails('outbound', faxId, function(fax) { - fax.attempts = 0; - self.callApi({ resource: 'faxes.updateOutbound', data: { accountId: self.accountId, faxId: faxId, - data: fax + data: fax, + envelopeKeys: { + action: 'resubmit' + } }, success: function(data) { callback && callback(data.data); diff --git a/views/outbound-faxes.html b/views/outbound-faxes.html index 0289a61..3dfe933 100644 --- a/views/outbound-faxes.html +++ b/views/outbound-faxes.html @@ -23,9 +23,9 @@ - +