From 429f10b49f89fe4b90fd4400b486931b0f965ede Mon Sep 17 00:00:00 2001 From: Niels Simenon Date: Fri, 12 Nov 2021 16:47:59 +0100 Subject: [PATCH] Fixed set points breaking when called without options. --- src/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app.js b/src/app.js index ee0779f..e54d722 100644 --- a/src/app.js +++ b/src/app.js @@ -47,7 +47,7 @@ async function getWsId(httpSession) { return res.body; } -async function setPoints(defaultKey, user, value, { mode = 'add', key }) { +async function setPoints(defaultKey, user, value, { mode = 'add', key } = {}) { const gameKey = key || defaultKey; if (!user) {