From 5c005bbbdf4dd6caba9d9cd49814c2184d14dc21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Wed, 5 Apr 2017 15:18:27 -0400 Subject: [PATCH] use bind --- src/flags.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flags.js b/src/flags.js index ede0871b83..9022af2c45 100644 --- a/src/flags.js +++ b/src/flags.js @@ -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)); } }