mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-01-16 12:22:26 +01:00
fix(score): do not log score if value is 0
This commit is contained in:
@@ -24,7 +24,7 @@ var mtDebug = require(path.resolve('./config/lib/debug'));
|
||||
*/
|
||||
module.exports.update = function (req, user, action, value, writeLog = true) {
|
||||
var v = value || action.value || 0;
|
||||
mtDebug.info('scoreUpdate: score = ' + score);
|
||||
mtDebug.info('scoreUpdate: value = ' + v);
|
||||
|
||||
if (action.enable && v !== 0) {
|
||||
if (user) {
|
||||
|
||||
Reference in New Issue
Block a user