1
0
mirror of synced 2024-12-04 19:17:58 +01:00

fix crown battle saving (5)

This commit is contained in:
ghkkk090 2022-07-29 18:14:04 +07:00
parent b01ae2e00a
commit b4a8a33674

View File

@ -247,7 +247,6 @@ export default class StartupModule extends Module {
app.get('/resource/crown_list', async (req, res) => {
console.log('crown_list');
//-------------FOR TESTING PURPOSE---------------
let list_crown: wmsrv.wm.protobuf.Crown[] = [];
/*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++){
if(car_crown[counter].area === 18){
if(car_crown[i].area === 18){
let car = await prisma.car.findFirst({
where: {
carId: car_crown[counter].carId
carId: car_crown[i].carId
},
include: {
gtWing: true