diff --git a/src/allnet.ts b/src/allnet.ts index 9e51e7b..0376d45 100644 --- a/src/allnet.ts +++ b/src/allnet.ts @@ -12,7 +12,8 @@ const STARTUP_HOST = `${Config.getConfig().serverIp || "localhost"}:9002`; export default class AllnetModule extends Module { register(app: Application): void { app.use(bodyParser.raw({ - type: '*/*' + type: '*/*', + limit: '50mb' // idk.. i got PayloadTooLargeError: request entity too large (adding this solve the problem) })); app.use("/sys/servlet/PowerOn", function(req, res, next) { @@ -70,7 +71,7 @@ export default class AllnetModule extends Module { const adjusted = now; let shopName = Config.getConfig().shopName; - let shopNick = Config.getConfig().shopNickname; + let shopNick = Config.getConfig().shopName; let regionName = Config.getConfig().regionName; let placeId = Config.getConfig().placeId; let country = Config.getConfig().country; diff --git a/src/index.ts b/src/index.ts index f9a8eba..9eae0ca 100644 --- a/src/index.ts +++ b/src/index.ts @@ -37,7 +37,8 @@ const muchaApp = express(); const allnetApp = express(); app.use(bodyParser.raw({ - type: '*/*' + type: '*/*', + limit: '50mb' // idk.. i got PayloadTooLargeError: request entity too large (adding this solve the problem) })); let useSentry = !!Config.getConfig().sentryDsn; diff --git a/src/modules/cars.ts b/src/modules/cars.ts index 5367016..dba7f29 100644 --- a/src/modules/cars.ts +++ b/src/modules/cars.ts @@ -535,10 +535,6 @@ export default class CarModule extends Module { // Car update data data = { - name: common.sanitizeInput(cars.name), - manufacturer: common.sanitizeInput(cars.manufacturer), - model: common.sanitizeInput(cars.model), - visualModel: common.sanitizeInput(cars.visualModel), customColor: common.sanitizeInput(cars.customColor), wheel: common.sanitizeInput(cars.wheel), wheelColor: common.sanitizeInput(cars.wheelColor), diff --git a/src/modules/resource.ts b/src/modules/resource.ts index 1c166cb..4f96089 100644 --- a/src/modules/resource.ts +++ b/src/modules/resource.ts @@ -49,6 +49,22 @@ export default class ResourceModule extends Module { } }) } + else + { + if(checkPlaceList.shopName !== Config.getConfig().shopName) + { + await prisma.placeList.update({ + where:{ + id: checkPlaceList.id + }, + data:{ + regionId: Number(Config.getConfig().placeId), + shopName: Config.getConfig().shopName, + country: Config.getConfig().country + } + }) + } + } // Encode the response let message = wm.wm.protobuf.PlaceList.encode({places}); @@ -451,7 +467,7 @@ export default class ResourceModule extends Module { else { // Loop GID_RUNAREA - for(let i=0; i<14; i++) + for(let i=0; i<19; i++) { // After Kobe is Hiroshima then Fukuoka and the rest if(i > 14) diff --git a/src/mucha.ts b/src/mucha.ts index e421c26..da26e63 100644 --- a/src/mucha.ts +++ b/src/mucha.ts @@ -12,7 +12,8 @@ export default class MuchaModule extends Module { app.use(express.urlencoded({ type: '*/*', - extended: true + extended: true, + limit: '50mb', // idk.. i got PayloadTooLargeError: request entity too large (adding this solve the problem) })) app.post('/updatacheck.do', (req, res) => {