mirror of
https://github.com/shiroikitsu8/Bayshore_6r_legacy.git
synced 2024-12-03 19:47:17 +01:00
fix crown ghost saving bug
This commit is contained in:
parent
6e3bddd018
commit
d3abffa233
@ -758,19 +758,17 @@ export default class GameModule extends Module {
|
||||
|
||||
if(gCount){
|
||||
let gdbId = gCount.dbId;
|
||||
await prisma.ghostTrail.update({
|
||||
await prisma.ghostTrail.delete({
|
||||
where: {
|
||||
dbId: gdbId
|
||||
},
|
||||
data: saveEx
|
||||
});
|
||||
}
|
||||
else{
|
||||
await prisma.ghostTrail.create({
|
||||
data: saveEx
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
await prisma.ghostTrail.create({
|
||||
data: saveEx
|
||||
});
|
||||
|
||||
await prisma.carCrown.update({
|
||||
where: {
|
||||
area: saveEx.area
|
||||
|
Loading…
Reference in New Issue
Block a user