Fixed set points breaking when called without options.
This commit is contained in:
@@ -47,7 +47,7 @@ async function getWsId(httpSession) {
|
|||||||
return res.body;
|
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;
|
const gameKey = key || defaultKey;
|
||||||
|
|
||||||
if (!user) {
|
if (!user) {
|
||||||
|
|||||||
Reference in New Issue
Block a user