removed console logs

This commit is contained in:
Andris Reinman 2017-07-20 16:59:48 +03:00
parent fc1c23676f
commit 3a79a1713a

4
api.js
View file

@ -1510,8 +1510,6 @@ function getMailboxCounter(mailbox, type, done) {
return done(err);
}
console.log(prefix + ':' + mailbox.toString(), err, sum);
if (sum !== null) {
return done(null, Number(sum));
}
@ -1527,8 +1525,6 @@ function getMailboxCounter(mailbox, type, done) {
return done(err);
}
console.log(query, err, sum);
// cache calculated sum in redis
db.redis.multi().set(prefix + ':' + mailbox.toString(), sum).expire(prefix + ':' + mailbox.toString(), consts.MAILBOX_COUNTER_TTL).exec(() => {
done(null, sum);