Skip to content

Commit

Permalink
redlink-gmbh/smarti#221: Set room topic as support area for conversation
Browse files Browse the repository at this point in the history
  • Loading branch information
Peyman Aparviz committed Mar 20, 2018
1 parent 76be1dc commit c7966a3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/assistify-ai/server/lib/SmartiAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,11 @@ export class SmartiAdapter {
}
} else {
SystemLogger.debug('Conversation not found for channel');
const helpRequest = RocketChat.models.HelpRequests.findOneByRoomId(message.rid);
const supportArea = helpRequest ? helpRequest.supportArea : undefined;
//const helpRequest = RocketChat.models.HelpRequests.findOneByRoomId(message.rid);
//SystemLogger.debug('HelpRequest:', helpRequest);
const room = RocketChat.models.Rooms.findOneById(message.rid);
SystemLogger.debug('HelpRequest:', helpRequest);
SystemLogger.debug('Room:', room);
const supportArea = room.topic;

const requestBodyConversation = {
'meta': {
Expand Down

0 comments on commit c7966a3

Please sign in to comment.