Skip to content

Commit

Permalink
fix: lint fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
aashishmalik committed Mar 7, 2024
1 parent 23a1681 commit f6b6607
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
18 changes: 8 additions & 10 deletions src/v1/destinations/algolia/networkHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,19 +50,17 @@ const responseHandler = (responseParams) => {
metadata,
error: errorMessage,
});
continue;
} else {
serverStatus = 500;
metadata.dontBatch = true;
responseWithIndividualEvents.push({

Check warning on line 56 in src/v1/destinations/algolia/networkHandler.js

View check run for this annotation

Codecov / codecov/patch

src/v1/destinations/algolia/networkHandler.js#L53-L56

Added lines #L53 - L56 were not covered by tests
statusCode: 500,
metadata,
error: errorMessage,
});
}
serverStatus = 500;
metadata.dontBatch = true;
responseWithIndividualEvents.push({
statusCode: 500,
metadata,
error: errorMessage,
});
}

// 400 ... 500 ...not going through individual status

// sending back 500 for retry
throw new TransformerProxyError(

Check warning on line 65 in src/v1/destinations/algolia/networkHandler.js

View check run for this annotation

Codecov / codecov/patch

src/v1/destinations/algolia/networkHandler.js#L65

Added line #L65 was not covered by tests
`ALGOLIA: Error transformer proxy v1 during ALGOLIA response transformation`,
Expand Down
2 changes: 1 addition & 1 deletion test/integrations/destinations/salesforce/network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -466,5 +466,5 @@ export const networkCallsData = [
...tfProxyMocksData,
...transformationMocksData,
...businessMockData,
...otherMocksData
...otherMocksData,
];

0 comments on commit f6b6607

Please sign in to comment.