Skip to content

Commit

Permalink
fixed indentation (RocketChat#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
ja-fra committed Feb 15, 2018
1 parent 4cc03fe commit 79a096d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/assistify-ai/server/methods/SmartiWidgetBackend.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const querystring = require('querystring');
/** @namespace RocketChat.RateLimiter.limitFunction */

/**
* The SmartiWidgetBackend handles all interactions triggered by the Smarti widget (not by Rocket.Chat hooks).
* The SmartiWidgetBackend handles all interactions triggered by the Smarti widget (not by Rocket.Chat hooks).
* These 'Meteor.methods' are made available to be accessed via DDP, to be used in the Smarti widget.
*/
Meteor.methods({
Expand All @@ -33,11 +33,11 @@ Meteor.methods({
}
}
)(verbs.get, `legacy/rocket.chat?channel_id=${ channelId }`, null, (error) => {
// 404 is expected if no mapping exists
if (error.response.statusCode === 404) {
return null;
}
});
// 404 is expected if no mapping exists
if (error.response.statusCode === 404) {
return null;
}
});

if (conversation && conversation.id) {
let timestamp = conversation.messages &&
Expand Down

0 comments on commit 79a096d

Please sign in to comment.