Compare commits

...

2 Commits

Author SHA1 Message Date
ThePendulum 5e36eff8f5 1.5.1 2021-11-12 16:48:01 +01:00
ThePendulum 429f10b49f Fixed set points breaking when called without options. 2021-11-12 16:47:59 +01:00
3 changed files with 4 additions and 4 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "schat2-clive", "name": "schat2-clive",
"version": "1.5.0", "version": "1.5.1",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "schat2-clive", "name": "schat2-clive",
"version": "1.5.0", "version": "1.5.1",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"bhttp": "^1.2.8", "bhttp": "^1.2.8",

View File

@ -1,6 +1,6 @@
{ {
"name": "schat2-clive", "name": "schat2-clive",
"version": "1.5.0", "version": "1.5.1",
"description": "Game host for SChat 2-powered chat sites", "description": "Game host for SChat 2-powered chat sites",
"main": "src/app.js", "main": "src/app.js",
"scripts": { "scripts": {

View File

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