Skip to content

Commit

Permalink
[Braze] Increase timeout (#2371)
Browse files Browse the repository at this point in the history
  • Loading branch information
varadarajan-tw authored Sep 5, 2024
1 parent c0a65cb commit 0f82e08
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/destination-actions/src/destinations/braze/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { DestinationDefinition } from '@segment/actions-core'
import type { Settings } from './generated-types'
import { defaultValues } from '@segment/actions-core'
import { DEFAULT_REQUEST_TIMEOUT, defaultValues } from '@segment/actions-core'
import createAlias from './createAlias'
import identifyUser from './identifyUser'
import trackEvent from './trackEvent'
Expand Down Expand Up @@ -63,7 +63,8 @@ const destination: DestinationDefinition<Settings> = {
return {
headers: {
Authorization: `Bearer ${settings.api_key}`
}
},
timeout: Math.max(30_000, DEFAULT_REQUEST_TIMEOUT)
}
},
actions: {
Expand Down

0 comments on commit 0f82e08

Please sign in to comment.