Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yashasvibajpai committed Oct 31, 2023
1 parent 4d7e669 commit 5f44aee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/v0/destinations/freshmarketer/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ const updateAccountWOContact = (payload, Config) => {
*/
const updateContactWithList = (userId, listId, Config) => {
const response = defaultRequestConfig();
response.endpoint = `https://${Config.domain}.myfreshworks.com/crm/sales/api/lists/${listId}/add_contacts`;
response.endpoint = `https://${Config.domain}/crm/sales/api/lists/${listId}/add_contacts`;
response.headers = getHeaders(Config.apiKey);
response.body.JSON = {
ids: [userId],
Expand Down
8 changes: 4 additions & 4 deletions test/__tests__/data/freshmarketer.json
Original file line number Diff line number Diff line change
Expand Up @@ -1892,7 +1892,7 @@
"destination": {
"Config": {
"apiKey": "dummyApiKey",
"domain": "domain-rudder.myfreshworks.com"
"domain": "domain-rudder.freshworks.com"
}
}
},
Expand All @@ -1914,7 +1914,7 @@
"Authorization": "Token token=dummyApiKey"
},
"version": "1",
"endpoint": "https://domain-rudder.myfreshworks.com/crm/sales/api/lists/70000059716/add_contacts"
"endpoint": "https://domain-rudder.freshworks.com/crm/sales/api/lists/70000059716/add_contacts"
}
},
{
Expand Down Expand Up @@ -2043,7 +2043,7 @@
"destination": {
"Config": {
"apiKey": "dummyApiKey",
"domain": "domain-rudder.myfreshworks.com"
"domain": "domain-rudder.freshworks.com"
}
}
},
Expand All @@ -2065,7 +2065,7 @@
"Authorization": "Token token=dummyApiKey"
},
"version": "1",
"endpoint": "https://domain-rudder.myfreshworks.com/crm/sales/api/lists/70000058627/add_contacts"
"endpoint": "https://domain-rudder.freshworks.com/crm/sales/api/lists/70000058627/add_contacts"
}
},
{
Expand Down

0 comments on commit 5f44aee

Please sign in to comment.