Fixed set points breaking when called without options.

This commit is contained in:
ThePendulum 2021-11-12 16:47:59 +01:00
parent 5ee4117f4e
commit 429f10b49f
1 changed files with 1 additions and 1 deletions

View File

@ -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) {