Skip to content

Commit

Permalink
Seeing more timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
lperson committed Jun 22, 2020
1 parent 0994c87 commit ab08119
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/integrations/action-handlers/ngpvan-action.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ async function getContactTypeIdAndInputTypeId(organization) {
`https://api.securevan.com/v4/canvassResponses/contactTypes`,
{
method: "GET",
timeout: 5000,
headers: {
Authorization: Van.getAuth(organization)
}
Expand All @@ -104,6 +105,7 @@ async function getContactTypeIdAndInputTypeId(organization) {
`https://api.securevan.com/v4/canvassResponses/inputTypes`,
{
method: "GET",
timeout: 5000,
headers: {
Authorization: Van.getAuth(organization)
}
Expand Down Expand Up @@ -179,6 +181,7 @@ export async function getClientChoiceData(organization) {
`https://api.securevan.com/v4/surveyQuestions?statuses=Active${cycleFilter}`,
{
method: "GET",
timeout: 5000,
headers: {
Authorization: Van.getAuth(organization)
}
Expand All @@ -195,6 +198,7 @@ export async function getClientChoiceData(organization) {
`https://api.securevan.com/v4/activistCodes?statuses=Active`,
{
method: "GET",
timeout: 5000,
headers: {
Authorization: Van.getAuth(organization)
}
Expand All @@ -211,6 +215,7 @@ export async function getClientChoiceData(organization) {
`https://api.securevan.com/v4/canvassResponses/resultCodes`,
{
method: "GET",
timeout: 5000,
headers: {
Authorization: Van.getAuth(organization)
}
Expand Down
3 changes: 2 additions & 1 deletion src/server/api/mutations/updateQuestionResponses.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export const updateQuestionResponses = async (
if (!handler) {
return questionResponse;
}
await handler
const processActionPromise = handler
.processAction(
questionResponse,
questionResponseInteractionStep,
Expand All @@ -92,6 +92,7 @@ export const updateQuestionResponses = async (
`Error executing handler for InteractionStep ${interactionStepId} InteractionStepAction ${interactionStepAction} error ${err}`
);
});
promises.push(processActionPromise);
return questionResponse;
})
.catch(err => {
Expand Down

0 comments on commit ab08119

Please sign in to comment.