Small tweaks + whitespace

This commit is contained in:
Michael Jackson
2018-05-25 20:25:04 -04:00
parent a8471ed950
commit c0e0f899d2
5 changed files with 12 additions and 8 deletions

View File

@ -1,6 +1,6 @@
const db = require("./redis");
function incrementCounter(counter, key, by) {
function incrementCounter(counter, key, by = 1) {
return new Promise((resolve, reject) => {
db.hincrby(counter, key, by, (error, value) => {
if (error) {