1
0
mirror of synced 2024-11-12 01:10:47 +01:00

Add config to startup because I forgor last time

This commit is contained in:
Rin 2022-07-12 15:25:54 +01:00
parent 8b4627ef56
commit 484615a447

View File

@ -1,5 +1,6 @@
import { Application } from "express"; import { Application } from "express";
import {Module} from "module"; import {Module} from "module";
import { Config } from "../config";
import * as wm from "../wmmt/wm.proto"; import * as wm from "../wmmt/wm.proto";
export default class StartupModule extends Module { export default class StartupModule extends Module {
@ -36,7 +37,7 @@ export default class StartupModule extends Module {
places.push(new wm.wm.protobuf.Place({ places.push(new wm.wm.protobuf.Place({
placeId: "JPN0123", placeId: "JPN0123",
regionId: 1, regionId: 1,
shopName: "WMMT6", shopName: Config.getConfig().shopName,
country: "JPN" country: "JPN"
})); }));
let resp = wm.wm.protobuf.PlaceList.encode({places}); let resp = wm.wm.protobuf.PlaceList.encode({places});