We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d5a3eb2 + 3ac051d commit 93a6bafCopy full SHA for 93a6baf
packages/dbs-ai/server/lib/Smarti.js
@@ -21,6 +21,10 @@ class SmartiAdapter {
21
22
//TODO is this always a new one, what about update
23
24
+ const helpRequest = RocketChat.models.HelpRequests.findOneByRoomId(message.rid);
25
+
26
+ const supportArea = helpRequest ? helpRequest.supportArea : undefined;
27
28
const requestBody = {
29
webhook_url: this.properties.webhookUrl,
30
message_id: message._id,
@@ -29,7 +33,8 @@ class SmartiAdapter {
33
// username: message.u.username,
34
text: message.msg,
31
35
timestamp: message.ts,
32
- origin: message.origin
36
+ origin: message.origin,
37
+ support_area: supportArea
38
};
39
40
try {
0 commit comments