From 855ffd5cfd8740c5eab53ce53eea40b1b9ebea91 Mon Sep 17 00:00:00 2001 From: Yurii Borysov Date: Sat, 13 Aug 2022 22:41:21 +0300 Subject: [PATCH] Add documents --- TODO | 4 +++- resources/couchdb/views/votesAndChatStats.js | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/TODO b/TODO index 83ab9b6..958ef7f 100644 --- a/TODO +++ b/TODO @@ -1 +1,3 @@ -[] add todo items \ No newline at end of file +2022/08/13 +[ ] set up couchdb credentials locally +[ ] add todo items \ No newline at end of file diff --git a/resources/couchdb/views/votesAndChatStats.js b/resources/couchdb/views/votesAndChatStats.js index 4b11dcf..c574f59 100644 --- a/resources/couchdb/views/votesAndChatStats.js +++ b/resources/couchdb/views/votesAndChatStats.js @@ -1,4 +1,4 @@ -function (keys, values, rereduce) { +(function (keys, values, rereduce) { let sumKarma = function(a,b) { return a+b.karma; }; @@ -21,4 +21,4 @@ function (keys, values, rereduce) { messageCount: values.reduce(addMessageCount,0), user: values[0].user }; - } \ No newline at end of file + }) \ No newline at end of file