From 41e7cbd662049bc074f8c96cfeced70e310e4932 Mon Sep 17 00:00:00 2001 From: Renato Becker Date: Mon, 26 Feb 2018 16:39:19 -0300 Subject: [PATCH] Fix indentation tabs. --- .../server/lib/QueueMethods.js | 6 +++--- .../rocketchat-livechat/server/models/Rooms.js | 18 +++++++++--------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/packages/rocketchat-livechat/server/lib/QueueMethods.js b/packages/rocketchat-livechat/server/lib/QueueMethods.js index 148a7816cda3..0b5d204fbe97 100644 --- a/packages/rocketchat-livechat/server/lib/QueueMethods.js +++ b/packages/rocketchat-livechat/server/lib/QueueMethods.js @@ -22,8 +22,8 @@ RocketChat.QueueMethods = { lm: new Date(), code: roomCode, label: guest.name || guest.username, - name: (roomInfo && roomInfo.name) || guest.name || guest.username, - fname: (roomInfo && roomInfo.fname) || guest.name || guest.username, + name: (roomInfo && roomInfo.name) || guest.name || guest.username, + fname: (roomInfo && roomInfo.fname) || guest.name || guest.username, // usernames: [agent.username, guest.username], t: 'l', ts: new Date(), @@ -125,7 +125,7 @@ RocketChat.QueueMethods = { lm: new Date(), code: roomCode, label: guest.name || guest.username, - fname: guest.name || guest.username, + fname: guest.name || guest.username, // usernames: [guest.username], t: 'l', ts: new Date(), diff --git a/packages/rocketchat-livechat/server/models/Rooms.js b/packages/rocketchat-livechat/server/models/Rooms.js index 023285c0fae8..43c438c8540c 100644 --- a/packages/rocketchat-livechat/server/models/Rooms.js +++ b/packages/rocketchat-livechat/server/models/Rooms.js @@ -70,18 +70,18 @@ RocketChat.models.Rooms.findLivechatByCode = function(code, fields) { }; RocketChat.models.Rooms.findLivechatById = function(_id, fields) { - const options = {}; + const options = {}; - if (fields) { - options.fields = fields; - } + if (fields) { + options.fields = fields; + } - const query = { - t: 'l', - _id - }; + const query = { + t: 'l', + _id + }; - return this.findOne(query, options); + return this.findOne(query, options); }; /**