mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 19:46:01 +01:00
fixed topic/post count :/
This commit is contained in:
@@ -347,8 +347,8 @@ marked.setOptions({
|
|||||||
RDB.mget(['totaltopiccount', 'totalpostcount'], function(err, data) {
|
RDB.mget(['totaltopiccount', 'totalpostcount'], function(err, data) {
|
||||||
if(err === null) {
|
if(err === null) {
|
||||||
var stats = {
|
var stats = {
|
||||||
topics: data[1]?data[1]:0,
|
topics: data[0]?data[0]:0,
|
||||||
posts: data[0]?data[0]:0
|
posts: data[1]?data[1]:0
|
||||||
};
|
};
|
||||||
|
|
||||||
socket.emit('post.stats', stats);
|
socket.emit('post.stats', stats);
|
||||||
|
|||||||
Reference in New Issue
Block a user