mirror of
https://github.com/shiroikitsu8/Bayshore_6r_legacy.git
synced 2025-02-26 22:39:06 +01:00
fix crown battle saving (5)
This commit is contained in:
parent
b01ae2e00a
commit
b4a8a33674
@ -247,7 +247,6 @@ export default class StartupModule extends Module {
|
|||||||
|
|
||||||
app.get('/resource/crown_list', async (req, res) => {
|
app.get('/resource/crown_list', async (req, res) => {
|
||||||
console.log('crown_list');
|
console.log('crown_list');
|
||||||
|
|
||||||
//-------------FOR TESTING PURPOSE---------------
|
//-------------FOR TESTING PURPOSE---------------
|
||||||
let list_crown: wmsrv.wm.protobuf.Crown[] = [];
|
let list_crown: wmsrv.wm.protobuf.Crown[] = [];
|
||||||
/*let car_crown = await prisma.car.findFirst({
|
/*let car_crown = await prisma.car.findFirst({
|
||||||
@ -306,10 +305,10 @@ export default class StartupModule extends Module {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
for(let i=0; i<car_crown.length; i++){
|
for(let i=0; i<car_crown.length; i++){
|
||||||
if(car_crown[counter].area === 18){
|
if(car_crown[i].area === 18){
|
||||||
let car = await prisma.car.findFirst({
|
let car = await prisma.car.findFirst({
|
||||||
where: {
|
where: {
|
||||||
carId: car_crown[counter].carId
|
carId: car_crown[i].carId
|
||||||
},
|
},
|
||||||
include: {
|
include: {
|
||||||
gtWing: true
|
gtWing: true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user