Fixed set points breaking when called without options.
This commit is contained in:
parent
5ee4117f4e
commit
429f10b49f
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue