This commit is contained in:
Barış Soner Uşaklı
2017-04-05 15:18:27 -04:00
parent 1b6d96dde7
commit 5c005bbbdf

View File

@@ -338,7 +338,7 @@ Flags.create = function (type, id, uid, reason, timestamp, callback) {
if (type === 'post') {
tasks.push(async.apply(db.sortedSetAdd.bind(db), 'flags:byPid:' + id, timestamp, flagId)); // by target pid
if (targetUid) {
tasks.push(async.apply(db.sortedSetIncrBy, 'users:flags', 1, targetUid));
tasks.push(async.apply(db.sortedSetIncrBy.bind(db), 'users:flags', 1, targetUid));
}
}