Skip to content

Commit

Permalink
Merge pull request #112 from freshworks/FC-127010
Browse files Browse the repository at this point in the history
[FC-127010] - remove assigned agent id
  • Loading branch information
ShashaankKrishnatray authored Jul 24, 2024
2 parents 8a09fc6 + ca8eeb8 commit 7d1805c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 13 deletions.
2 changes: 1 addition & 1 deletion packages/freshchat-api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@freshworks-jaya/freshchat-api",
"version": "0.7.35-beta-05",
"version": "0.7.36",
"description": "Provides simple interface for accessing Freshchat's public APIs",
"repository": "[email protected]:freshdesk/jaya-lib.git",
"main": "lib/index.js",
Expand Down
11 changes: 1 addition & 10 deletions packages/freshchat-api/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -460,19 +460,10 @@ export default class Freshchat {
assigned_agent_id: string,
): AxiosPromise<Conversation> {
const conversationPropsUpdateApiUrl = `${this.apiUrl}/conversations/${conversationId}`;
let requiredProperties;
if (assigned_agent_id !== '' && status === ConversationStatus.Assigned) {
requiredProperties = JSON.stringify({
assigned_agent_id,
let requiredProperties = JSON.stringify({
properties,
status,
});
} else {
requiredProperties = JSON.stringify({
properties,
status,
});
}

return axios.put(conversationPropsUpdateApiUrl, requiredProperties, { headers: this.headers });
}
Expand Down
4 changes: 2 additions & 2 deletions packages/rule-engine/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@freshworks-jaya/rule-engine",
"version": "0.18.2",
"version": "0.18.3",
"description": "Provides methods to process rules in product events in marketplace app",
"repository": "[email protected]:freshdesk/jaya-lib.git",
"main": "lib/index.js",
Expand Down Expand Up @@ -44,7 +44,7 @@
"typescript": "^4.3.2"
},
"dependencies": {
"@freshworks-jaya/freshchat-api": "0.7.35-beta-05",
"@freshworks-jaya/freshchat-api": "0.7.36",
"@freshworks-jaya/kairos-api": "^0.1.5",
"@freshworks-jaya/marketplace-models": "0.1.36",
"@freshworks-jaya/utilities": "^1.0.0",
Expand Down

0 comments on commit 7d1805c

Please sign in to comment.