fix(timeouts): Wait 5 mintues before hanging up /send

This commit is contained in:
Ben Gotow 2015-10-04 00:54:07 -07:00
parent 063c2098c3
commit 155af462a9
2 changed files with 2 additions and 0 deletions

View file

@ -227,6 +227,7 @@ class AccountSettingsPage extends React.Component
EdgehillAPI.request
path: "/connect/nylas"
method: "POST"
timeout: 30000
body: json
success: (json) =>
OnboardingActions.accountJSONReceived(json)

View file

@ -60,6 +60,7 @@ class SendDraftTask extends Task
accountId: @draft.accountId
method: 'POST'
body: body
timeout: 1000 * 60 * 5 # We cannot hang up a send - won't know if it sent
returnsModel: false
.then (json) =>