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 { Module } from "./module";
|
||||||
import iconv from "iconv-lite";
|
import iconv from "iconv-lite";
|
||||||
import { Config } from "./config";
|
import { Config } from "./config";
|
||||||
|
import * as common from "./modules/util/common";
|
||||||
|
|
||||||
// TODO: Move this into the config
|
// TODO: Move this into the config
|
||||||
const STARTUP_URI = `https://${Config.getConfig().serverIp || "localhost"}:9002`;
|
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 regionName = Config.getConfig().regionName;
|
||||||
let placeId = Config.getConfig().placeId;
|
let placeId = Config.getConfig().placeId;
|
||||||
let country = Config.getConfig().country;
|
let country = Config.getConfig().country;
|
||||||
let regionId = Config.getConfig().regionId;
|
let regionId = common.sanitizeInputNotZero(Number(Config.getConfig().regionId)) || 1;
|
||||||
|
|
||||||
// TODO: Implement board authentication here.
|
// TODO: Implement board authentication here.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user