Skip to content

Commit

Permalink
chore: formatting updates - 2
Browse files Browse the repository at this point in the history
Signed-off-by: Sai Sankeerth <[email protected]>
  • Loading branch information
Sai Sankeerth committed Feb 5, 2024
1 parent dfbb83c commit 33b1d4a
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/cdk/v2/destinations/intercom/procWorkflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ steps:
payload;
- name: identifyPayloadForLatestVersion
condition: $.outputs.messageType === {{$.EventType.IDENTIFY}} && $.outputs.apiVersion !== "v1"
condition: $.outputs.messageType === {{$.EventType.IDENTIFY}} && $.outputs.apiVersion !== "v1"
template: |
const payload = .message.context.mappedToDestination ? $.outputs.rEtlPayload : $.outputs.identifyTransformationForLatestVersion;
payload.name = $.getName(.message);
Expand Down Expand Up @@ -187,7 +187,7 @@ steps:
template: |
$.context.endpoint = $.getBaseEndpoint(.destination) + "/" + "companies";
- name: prepareFinalPayload
template:
template: |
$.context.requestMethod = 'POST';
$.removeUndefinedAndNullValues($.context.payload);
Expand Down
2 changes: 1 addition & 1 deletion src/cdk/v2/destinations/intercom/rtWorkflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ steps:
)[]
- name: finalPayload
template: |
[...$.outputs.successfulEvents, ...$.outputs.failedEvents]
[...$.outputs.successfulEvents, ...$.outputs.failedEvents]
2 changes: 1 addition & 1 deletion src/cdk/v2/destinations/rakuten/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const constructLineItems = (properties) => {
}

if (product.price) {
return product.quantity * product.price * 100;
return product.quantity * product.price * 100;
}
return product.amount * 100;
});
Expand Down
2 changes: 1 addition & 1 deletion src/v0/destinations/rakuten/networkHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,5 +99,5 @@ class networkHandler {

module.exports = {
networkHandler,
responseHandler
responseHandler,
};
1 change: 0 additions & 1 deletion src/v0/destinations/rakuten/networkHandler.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,5 @@ describe('responseHandler', () => {
expect(() => {
responseHandler(destinationResponse);
}).toThrow('Request failed with status: 200 with number of bad records 1');

});
});
2 changes: 1 addition & 1 deletion test/integrations/testUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const addMock = (mock: MockAdapter, axiosMock: MockHttpCallsData) => {

switch (method.toLowerCase()) {
case 'get':
// We are accepting parameters exclusively for mocking purposes and do not require a request body,
// We are accepting parameters exclusively for mocking purposes and do not require a request body,
// particularly for GET requests where it is typically unnecessary
// @ts-ignore
mock.onGet(url, { params }, headersAsymMatch).reply(status, data, headers);
Expand Down

0 comments on commit 33b1d4a

Please sign in to comment.