removed icon:bgColor and icon:text from db calls

calculates from username on the fly
This commit is contained in:
barisusakli
2015-10-29 16:35:44 -04:00
parent d8e50f931e
commit f4bfcc7351
12 changed files with 13 additions and 30 deletions

View File

@@ -280,7 +280,7 @@ Sockets.getUsersInRoom = function (uid, roomName, start, stop, callback) {
if (!uids.length) {
return callback(null, {users: [], total: 0 , room: roomName});
}
user.getUsersFields(uids, ['uid', 'username', 'userslug', 'picture', 'status', 'icon:bgColor', 'icon:text'], function(err, users) {
user.getUsersFields(uids, ['uid', 'username', 'userslug', 'picture', 'status'], function(err, users) {
if (err) {
return callback(err);
}