Skip to content

Commit

Permalink
Fix indentation tabs.
Browse files Browse the repository at this point in the history
  • Loading branch information
renatobecker committed Feb 26, 2018
1 parent 2fb6d12 commit 41e7cbd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions packages/rocketchat-livechat/server/lib/QueueMethods.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down Expand Up @@ -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(),
Expand Down
18 changes: 9 additions & 9 deletions packages/rocketchat-livechat/server/models/Rooms.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};

/**
Expand Down

0 comments on commit 41e7cbd

Please sign in to comment.