regionid must not 0
This commit is contained in:
parent
abbcbff7ad
commit
396f05705d
@ -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.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user