Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
scratch-www
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
scratch-www
Commits
161f5061
Commit
161f5061
authored
Oct 03, 2017
by
Matthew Taylor
Committed by
GitHub
Oct 03, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1590 from mewtaylor/hotfix/message-count-endpoint
[Develop] Hotfix: change message count endpoint
parents
2830257b
75217978
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/redux/message-count.js
src/redux/message-count.js
+2
-2
No files found.
src/redux/message-count.js
View file @
161f5061
...
...
@@ -56,14 +56,14 @@ module.exports.getCount = function (username) {
return
function
(
dispatch
)
{
api
({
method
:
'
get
'
,
uri
:
'
/
proxy/users/
'
+
username
+
'
/activity
/count
'
uri
:
'
/
users/
'
+
username
+
'
/messages
/count
'
},
function
(
err
,
body
)
{
if
(
err
)
{
dispatch
(
module
.
exports
.
setCount
(
0
));
dispatch
(
module
.
exports
.
setSessionError
(
err
));
return
;
}
var
count
=
parseInt
(
body
.
msg_
count
,
10
);
var
count
=
parseInt
(
body
.
count
,
10
);
dispatch
(
module
.
exports
.
setCount
(
count
));
});
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment