1
0
mirror of https://github.com/shiroikitsu8/Bayshore_6r_legacy.git synced 2025-02-01 00:55:21 +01:00
This commit is contained in:
ghkkk090 2022-08-25 23:22:31 +07:00
parent cf3da4c023
commit f6ec738d2a

View File

@ -24,10 +24,10 @@ export default class ResourceModule extends Module {
// Response data // Response data
places.push(new wm.wm.protobuf.Place({ places.push(new wm.wm.protobuf.Place({
placeId: Config.getConfig().placeId, placeId: Config.getConfig().placeId || 'JPN0123',
regionId: Config.getConfig().regionId, regionId: Number(Config.getConfig().regionId) || 1,
shopName: Config.getConfig().shopName, shopName: Config.getConfig().shopName || 'Bayshore',
country: Config.getConfig().country country: Config.getConfig().country || 'JPN'
})); }));
let checkPlaceList = await prisma.placeList.findFirst({ let checkPlaceList = await prisma.placeList.findFirst({
@ -42,10 +42,10 @@ export default class ResourceModule extends Module {
await prisma.placeList.create({ await prisma.placeList.create({
data:{ data:{
placeId: Config.getConfig().placeId, placeId: Config.getConfig().placeId || 'JPN0123',
regionId: Number(Config.getConfig().regionId), regionId: Number(Config.getConfig().regionId) || 1,
shopName: Config.getConfig().shopName, shopName: Config.getConfig().shopName || 'Bayshore',
country: Config.getConfig().country country: Config.getConfig().country || 'JPN'
} }
}) })
} }