1
0
mirror of synced 2024-12-11 22:46:03 +01:00

regionid must not 0

This commit is contained in:
Shiroi Kitsu 2023-02-20 14:57:02 +07:00
parent abbcbff7ad
commit 396f05705d

View File

@ -4,6 +4,7 @@ import { unzipSync } from "zlib";
import { Module } from "./module";
import iconv from "iconv-lite";
import { Config } from "./config";
import * as common from "./modules/util/common";
// TODO: Move this into the config
const STARTUP_URI = `https://${Config.getConfig().serverIp || "localhost"}:9002`;
@ -75,7 +76,7 @@ export default class AllnetModule extends Module {
let regionName = Config.getConfig().regionName;
let placeId = Config.getConfig().placeId;
let country = Config.getConfig().country;
let regionId = Config.getConfig().regionId;
let regionId = common.sanitizeInputNotZero(Number(Config.getConfig().regionId)) || 1;
// TODO: Implement board authentication here.