summaryrefslogtreecommitdiffstats
path: root/webapp
diff options
context:
space:
mode:
authorenahum <nahumhbl@gmail.com>2016-09-06 15:48:43 -0300
committerGitHub <noreply@github.com>2016-09-06 15:48:43 -0300
commit35b816b92217237de922c928a6623b5ac426655a (patch)
treeadf7e7a96bd4b50aae0b295f94f8501643e7fc38 /webapp
parent9a9ae3dcd1c248a5d9e6f986ea967fa8bbf06f19 (diff)
downloadchat-35b816b92217237de922c928a6623b5ac426655a.tar.gz
chat-35b816b92217237de922c928a6623b5ac426655a.tar.bz2
chat-35b816b92217237de922c928a6623b5ac426655a.zip
PLT-3921 Fix System Console Recent Active Users (#3856)
* PLT-3921 System Console Recent Active Users
Diffstat (limited to 'webapp')
-rw-r--r--webapp/client/client.jsx9
-rw-r--r--webapp/utils/async_client.jsx2
2 files changed, 10 insertions, 1 deletions
diff --git a/webapp/client/client.jsx b/webapp/client/client.jsx
index 80e2cfe3e..6aabee080 100644
--- a/webapp/client/client.jsx
+++ b/webapp/client/client.jsx
@@ -958,6 +958,15 @@ export default class Client {
end(this.handleResponse.bind(this, 'getAudits', success, error));
}
+ getRecentlyActiveUsers(id, success, error) {
+ request.
+ get(`${this.getAdminRoute()}/recently_active_users/${id}`).
+ set(this.defaultHeaders).
+ type('application/json').
+ accept('application/json').
+ end(this.handleResponse.bind(this, 'getRecentlyActiveUsers', success, error));
+ }
+
getDirectProfiles(success, error) {
request.
get(`${this.getUsersRoute()}/direct_profiles`).
diff --git a/webapp/utils/async_client.jsx b/webapp/utils/async_client.jsx
index 585e4b1c0..22b223bc5 100644
--- a/webapp/utils/async_client.jsx
+++ b/webapp/utils/async_client.jsx
@@ -1138,7 +1138,7 @@ export function getRecentAndNewUsersAnalytics(teamId) {
callTracker[callName] = utils.getTimestamp();
- Client.getProfilesForTeam(
+ Client.getRecentlyActiveUsers(
teamId,
(users) => {
const stats = {};