diff options
author | Azul <azul@leap.se> | 2014-02-10 14:24:08 +0100 |
---|---|---|
committer | Azul <azul@leap.se> | 2014-02-10 14:24:08 +0100 |
commit | 2f00e2ec3c076e4910008904bc01e09df097944e (patch) | |
tree | 660b62ffe677575511e7d256ed3b7c6c562542a2 /users/app/designs/message/by_user_ids_to_show.js | |
parent | bd867c51c4d9e3d4c6b4c55d326eb9b13b89288b (diff) |
minor: rename var that holds a single user id to userId
Diffstat (limited to 'users/app/designs/message/by_user_ids_to_show.js')
-rw-r--r-- | users/app/designs/message/by_user_ids_to_show.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/users/app/designs/message/by_user_ids_to_show.js b/users/app/designs/message/by_user_ids_to_show.js index 95ccd0d..e33566b 100644 --- a/users/app/designs/message/by_user_ids_to_show.js +++ b/users/app/designs/message/by_user_ids_to_show.js @@ -1,7 +1,7 @@ function (doc) { if (doc.type === 'Message' && doc.user_ids_to_show && Array.isArray(doc.user_ids_to_show)) { - doc.user_ids_to_show.forEach(function (userIdsToShow) { - emit(userIdsToShow, 1); + doc.user_ids_to_show.forEach(function (userId) { + emit(userId, 1); }); } -}
\ No newline at end of file +} |