Skip to content

Commit

Permalink
paytm bots tag
Browse files Browse the repository at this point in the history
  • Loading branch information
ShashaankKrishnatray committed Jan 2, 2024
1 parent 9aa7c02 commit e2f47ec
Show file tree
Hide file tree
Showing 4 changed files with 20 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",
"version": "0.7.35-beta-05",
"description": "Provides simple interface for accessing Freshchat's public APIs",
"repository": "[email protected]:freshdesk/jaya-lib.git",
"main": "lib/index.js",
Expand Down
6 changes: 5 additions & 1 deletion packages/freshchat-api/src/conversation-html-paytm.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,11 @@
{{#each message.message_parts as | message_part index|}}
<div style="font-size: 13.6px; word-break: break-all; line-height: 1.24;">
{{#if (eq index 0)}}
Agent:
{{#if (eq message.actor_type 'agent')}}
Agent:
{{else}}
Bot:
{{/if}}
{{/if}}
{{> messageFragment fragment=message_part}}
</div>
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.17.27",
"version": "0.17.27-beta-08",
"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",
"@freshworks-jaya/freshchat-api": "0.7.35-beta-05",
"@freshworks-jaya/kairos-api": "^0.1.5",
"@freshworks-jaya/marketplace-models": "0.1.28",
"@freshworks-jaya/utilities": "^1.0.0",
Expand Down
21 changes: 12 additions & 9 deletions packages/rule-engine/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,18 @@ export class RuleEngine {
);
}
} catch (err) {
Utils.log(
payload,
integrations,
ErrorCodes.FreshchatAction,
{
error: err as AnyJson,
},
LogSeverity.ALERT,
);
if(options.enableLogger || (err !== 'no matching rule')){
Utils.log(
payload,
integrations,
ErrorCodes.FreshchatAction,
{
error: err as AnyJson,
},
LogSeverity.ALERT,
);
}

return Promise.reject(err);
}

Expand Down

0 comments on commit e2f47ec

Please sign in to comment.